Skip to content

fix(release): add missing security-events: write permission - #25

Merged
JSisques merged 1 commit into
mainfrom
fix/release-security-events-permission
Sep 16, 2026
Merged

JSisques merged 1 commit into
mainfrom
fix/release-security-events-permission

Conversation

@JSisques

Copy link
Copy Markdown
Contributor

Summary

Fixes the exact startup_failure from the first real run of release.yml:

Invalid workflow file: .github/workflows/release.yml#L31
Error calling workflow 'sisques-labs/workflows/.github/workflows/docker-release.yml@main'.
The workflow is requesting 'security-events: write', but is only allowed 'security-events: none'.

docker-release.yml declares security-events: write unconditionally at its own top level (only exercised when scan_image: true), and GitHub validates a caller's granted permissions against that declaration statically — regardless of which steps actually run. This permission got dropped when release.yml was simplified for bump_mode: promote (#24), since it looked unnecessary without scan_image. Root cause + upstream comment fix tracked in sisques-labs/workflows#75.

Adds security-events: write back to both the top-level and job-level permissions: blocks.

Test plan

  • actionlint clean
  • Merge and re-run release.yml with no inputs — should now actually start and complete

docker-release.yml declares security-events: write unconditionally
at its own top level (only exercised when scan_image=true), and
GitHub validates a caller's granted permissions against that
declaration statically, regardless of which steps actually run.
Dropping it broke the first real release.yml run:

  Error calling workflow '.../docker-release.yml@main'.
  The workflow is requesting 'security-events: write', but is
  only allowed 'security-events: none'.

See sisques-labs/workflows#75 for the corrected upstream comment.
@github-actions github-actions Bot added the ci CI/CD workflow changes label Sep 16, 2026
@JSisques
JSisques merged commit 1d49ee7 into main Sep 16, 2026
11 checks passed
@JSisques
JSisques deleted the fix/release-security-events-permission branch September 16, 2026 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci CI/CD workflow changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant