Skip to content

fix: grant packages: read to ci caller job in release workflow#31

Merged
Nitr4x merged 1 commit into
mainfrom
copilot/fix-workflow-security-permissions
Apr 11, 2026
Merged

fix: grant packages: read to ci caller job in release workflow#31
Nitr4x merged 1 commit into
mainfrom
copilot/fix-workflow-security-permissions

Conversation

Copilot AI commented Apr 11, 2026

Copy link
Copy Markdown
Contributor

Description

When release.yml calls ci.yml via workflow_call, the called workflow's jobs cannot exceed the permissions granted by the caller. The ci job in release.yml only declared contents: read, leaving packages at the implicit none — blocking the nested security job in ci.yml which requires packages: read.

Change:

  • .github/workflows/release.yml: added packages: read to the ci job's permissions block
# before
permissions:
  contents: read

# after
permissions:
  contents: read
  packages: read

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that causes existing functionality to change)
  • Documentation update
  • Refactor / code cleanup
  • CI / build change

How Has This Been Tested?

Workflow validation — the error was a static permissions inheritance violation caught by GitHub's workflow validator. No application code changed.

Checklist

  • My code follows the project's coding standards (go vet ./... passes)
  • I have run the existing test suite and all tests pass (go test ./...)
  • I have added or updated tests that cover my changes
  • I have updated documentation where relevant (README, comments, etc.)
  • I have not introduced new secrets, credentials, or sensitive data
  • My changes do not break backward compatibility (or I have documented breaking changes above)

Screenshots / Output (if applicable)

N/A

@Nitr4x Nitr4x marked this pull request as ready for review April 11, 2026 14:51
@Nitr4x Nitr4x merged commit f5820ff into main Apr 11, 2026
2 checks passed
@Nitr4x Nitr4x deleted the copilot/fix-workflow-security-permissions branch April 11, 2026 14:51
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.

2 participants