TPT-3778: Add explicit GitHub Actions permissions - #233
Merged
zliang-akamai merged 1 commit intoJul 31, 2026
Conversation
zliang-akamai
requested review from
psnoch-akamai and
yec-akamai
and removed request for
a team
July 21, 2026 22:00
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request adds explicit, least-privilege GITHUB_TOKEN permissions to the repository’s GitHub Actions workflows to satisfy actions/missing-workflow-permissions code scanning alerts and reduce default token scope.
Changes:
- Set
permissions: contents: readfor the build/test CI workflow. - Set
permissions: contents: readandissues: writefor the label synchronization workflow. - Set
permissions: contents: writefor the GoReleaser workflow that publishes release assets.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| .github/workflows/build-test.yml | Restricts CI token to read-only repository contents. |
| .github/workflows/labeler.yml | Grants minimal rights needed to sync labels (issues: write) plus read access to repo contents. |
| .github/workflows/release.yml | Grants contents: write required for release publication/upload steps. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
psnoch-akamai
approved these changes
Jul 30, 2026
mawilk90
approved these changes
Jul 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📝 Description
Add explicit least-privilege
GITHUB_TOKENpermissions to the build, labeler, and release workflows.This addresses code scanning alerts 1 through 4 for
actions/missing-workflow-permissions. Read-only CI receivescontents: read, label synchronization receivescontents: readandissues: write, and GoReleaser receivescontents: writeto publish release assets.