Skip to content

security(ci): minimize release workflow token permissions#111

Merged
Ismail-elkorchi merged 3 commits intomainfrom
codex/security-hardening-20260307
Mar 7, 2026
Merged

security(ci): minimize release workflow token permissions#111
Ismail-elkorchi merged 3 commits intomainfrom
codex/security-hardening-20260307

Conversation

@Ismail-elkorchi
Copy link
Copy Markdown
Owner

@Ismail-elkorchi Ismail-elkorchi commented Mar 7, 2026

What changed

  • moved the release-note publication step into a dedicated release-only job with contents: write
  • reduced workflow-wide GITHUB_TOKEN permissions to read-only for note rendering
  • fixed the workflow-dispatch checkout and tag fetch path so release-note dry runs resolve the intended range

Security finding addressed

  • fixes the code-scanning TokenPermissionsID finding on .github/workflows/release.yml

Verification

  • npm run check:fast
  • npm run release:notes:dry-run
  • npm run changelog:update:dry-run
  • YAML parse of .github/workflows/release.yml
  • successful release.yml dry-run on the PR branch

@Ismail-elkorchi Ismail-elkorchi merged commit bd4e3fb into main Mar 7, 2026
11 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