Commit f04ce77
fix: tag-triggered releases (release.yml/release-unix.yml) couldn't
actually publish — missing contents: write permission
Confirmed via the first real test of these workflows this session
(tag 2026.07.23-3b7388c): build-macos.sh itself succeeded, but the
softprops/action-gh-release step failed with a 403:
"Resource not accessible by integration". This repo's default GitHub
Actions workflow token permission is "read"
(gh api repos/4cecoder/metanoia/actions/permissions/workflow), and neither
of these two files ever declared their own `permissions: contents: write`
override — unlike release-latest.yml (added this session), which has
always had it and has been publishing successfully.
Added `permissions: contents: write` to every job in both files that
creates a release: release-unix.yml's build-macos/build-linux/
build-android, and release.yml's build. This means the tag-based release
flow may never have actually been able to auto-publish via CI before now,
independent of anything else changed this session.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>1 parent 3b7388c commit f04ce77
2 files changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| |||
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
| 57 | + | |
| 58 | + | |
55 | 59 | | |
56 | 60 | | |
57 | 61 | | |
| |||
97 | 101 | | |
98 | 102 | | |
99 | 103 | | |
| 104 | + | |
| 105 | + | |
100 | 106 | | |
101 | 107 | | |
102 | 108 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| |||
0 commit comments