Skip to content

ci: declare permissions on the PR-build workflow#2119

Open
arpitjain099 wants to merge 1 commit into
aws:mainfrom
arpitjain099:ci/add-permissions
Open

ci: declare permissions on the PR-build workflow#2119
arpitjain099 wants to merge 1 commit into
aws:mainfrom
arpitjain099:ci/add-permissions

Conversation

@arpitjain099
Copy link
Copy Markdown

PR-build.yml runs Go lint + tests across the matrix with actions/cache@v3 for the Go module cache. It is the one workflow in .github/workflows/ without an explicit permissions: block.

Scopes:

  • contents: readactions/checkout
  • actions: writeactions/cache@v3 save path. The action restores AND saves; once explicit permissions kick in (instead of repo default), the save call needs actions: write.

YAML validates.

PR-build runs Go lint + tests with actions/cache@v3 for Go module cache.
Needs:
  contents: read   - actions/checkout
  actions: write   - actions/cache save path (cache miss creates new cache entry)

Signed-off-by: Arpit Jain <arpitjain099@gmail.com>
@arpitjain099 arpitjain099 requested a review from a team as a code owner May 13, 2026 08:34
@arpitjain099
Copy link
Copy Markdown
Author

Hi @okankoAMZ, gentle ping on this. PR has been open for 4 days without review. I noticed you've been on the recent-merger side of recent merges in this repo. When you have a moment, would you mind giving it a quick look? No urgency. Happy to address any feedback.

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