Skip to content

Commit f04ce77

Browse files
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

File tree

.github/workflows/release-unix.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ on:
1111
jobs:
1212
build-macos:
1313
runs-on: macos-latest
14+
permissions:
15+
contents: write
1416
steps:
1517
- uses: actions/checkout@v4
1618

@@ -52,6 +54,8 @@ jobs:
5254

5355
build-linux:
5456
runs-on: ubuntu-latest
57+
permissions:
58+
contents: write
5559
steps:
5660
- uses: actions/checkout@v4
5761

@@ -97,6 +101,8 @@ jobs:
97101
98102
build-android:
99103
runs-on: ubuntu-latest
104+
permissions:
105+
contents: write
100106
steps:
101107
- uses: actions/checkout@v4
102108

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
jobs:
88
build:
99
runs-on: windows-latest
10+
permissions:
11+
contents: write
1012
steps:
1113
- uses: actions/checkout@v4
1214

0 commit comments

Comments
 (0)