Skip to content

Fix GitHub release permissions and Node 24 action runtime - #18

Merged
Nanahuse merged 1 commit into
mainfrom
fix/github-release-permissions
Aug 9, 2026
Merged

Nanahuse merged 1 commit into
mainfrom
fix/github-release-permissions

Conversation

@Nanahuse

@Nanahuse Nanahuse commented Aug 9, 2026

Copy link
Copy Markdown
Owner

What changed

  • Grant contents: write only to the release job so GITHUB_TOKEN can create the draft release and tag.
  • Upgrade softprops/action-gh-release from v2 to the Node 24-compatible v3.

Root cause

The release job's job-level permissions block overrode the workflow-level permission and reduced contents to read-only. The release API therefore returned 403 Resource not accessible by integration. The v2 action also used the deprecated Node 20 runtime.

Impact

The existing main-branch version-check release flow is preserved. No PAT, repository-wide permission change, public API change, or runtime dependency is introduced.

Validation

  • git diff --check
  • actionlint .github/workflows/release-on-new-version.yml
  • YAML parsing via uv run --with pyyaml

@Nanahuse
Nanahuse marked this pull request as ready for review August 9, 2026 08:55
@Nanahuse
Nanahuse merged commit 0147a22 into main Aug 9, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant