Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1d9049f

Browse files
authored
ci(release): grant contents: write to the github-release job (#32)
## Summary - The github-release step of the v1.0.0-beta.2 release failed with `403 Resource not accessible by integration` because the default `GITHUB_TOKEN` is scoped to `contents: read`. - Add a job-scoped `permissions: { contents: write }` on the `release` job so `softprops/action-gh-release` can create the release. - `build` and `publish` stay read-only. `cargo publish` uses `CARGO_REGISTRY_TOKEN`, not `GITHUB_TOKEN`, so no change there. Failing run: https://github.com/sassman/srp6-rs/actions/runs/24614589578/job/71974712686 ## Note The v1.0.0-beta.2 tag still points at the commit with the old workflow, and the crate is already on crates.io, so re-running the workflow would fail at `cargo publish` with "already uploaded". The release for this tag will be created manually via `gh release create`. Future tags will use the fixed workflow end-to-end. ## Test plan - [ ] CI green on this PR - [ ] Next tag cut (`v1.0.0` or next beta) runs the release job to completion
1 parent a06790c commit 1d9049f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ jobs:
3232
name: post / github release
3333
needs: publish
3434
runs-on: ubuntu-latest
35+
permissions:
36+
contents: write
3537
steps:
3638
- uses: actions/checkout@v4
3739
- name: Get version from tag

0 commit comments

Comments
 (0)