Skip to content

Commit

Permalink
ci(gha): add back contents: read permission to check job (#12480)
Browse files Browse the repository at this point in the history
## Motivation

When job has any permission provided any other, non specified ones are
treated like they would have permission `none` and global permissions
block is not merged with them, so we have to add back `contents: read`
permission to `check` job.

> Changelog: skip

<!--
Uncomment the above section to explicitly set a [`> Changelog:` entry
here](https://github.com/kumahq/kuma/blob/master/CONTRIBUTING.md#submitting-a-patch)?
-->

Signed-off-by: Bart Smykla <[email protected]>
  • Loading branch information
bartsmykla committed Jan 9, 2025
1 parent 64bc662 commit 20a3a17
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-test-distribute.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ concurrency:
jobs:
check:
permissions:
contents: read
checks: write # needed for golangci/golangci-lint-action to add code annotations in PRs
timeout-minutes: 25
runs-on: ubuntu-24.04
Expand Down

0 comments on commit 20a3a17

Please sign in to comment.