ci: set least-privilege token permissions on core CI workflows - #8062
Open
rivassec wants to merge 2 commits into
Open
ci: set least-privilege token permissions on core CI workflows#8062rivassec wants to merge 2 commits into
rivassec wants to merge 2 commits into
Conversation
Contributor
|
This pull request does not have a backport label. Could you fix it @rivassec? 🙏
|
rivassec
force-pushed
the
harden/ci-token-permissions
branch
from
August 24, 2026 00:37
1b0208b to
6b9e28e
Compare
|
💚 CLA has been signed |
Add an explicit top-level `permissions: contents: read` block to core CI workflows that previously relied on the default GITHUB_TOKEN scope: ci.yml, ci-pull_request.yml, unit-test.yml, packaging.yml. These workflows run build/test/lint/package jobs only. In ci.yml the jobs that need broader scope already declare their own job-level permissions (id-token: write for cloud OIDC, pull-requests: write for the allure/PR-comment job); those job-level blocks override the top-level default and are unchanged. No behavior change.
rivassec
force-pushed
the
harden/ci-token-permissions
branch
from
August 24, 2026 00:39
6b9e28e to
39de42a
Compare
rivassec
marked this pull request as ready for review
August 24, 2026 00:40
Author
I do not have the ability of assign labels |
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.
Adds a top-level
permissions: contents: readto core CI workflows that currently rely on the defaultGITHUB_TOKENscope:unit-test.yml,ci-pull_request.yml,packaging.yml(PR/merge_group builds only, no push), andci.yml.ci.ymlkeeps all its existing job-levelpermissions:blocks (OIDCid-token: write,pull-requests: write) — those override the top-level default, so only the previously-unscoped jobs are tightened.eks-ci.ymlis intentionally left out (it writes back to the PR and pushes images).No behavior change; hardening only.