Skip to content

ci: fix excessive GitHub workflow token permissions#5274

Open
gaganhr94 wants to merge 1 commit intofluent:masterfrom
gaganhr94:fix/token-permissions
Open

ci: fix excessive GitHub workflow token permissions#5274
gaganhr94 wants to merge 1 commit intofluent:masterfrom
gaganhr94:fix/token-permissions

Conversation

@gaganhr94
Copy link

Which issue(s) this PR fixes:
Fixes #5273

What this PR does / why we need it:
Moves contents: write and pull-requests: write permissions from the workflow level to the job level in backport.yml, and sets the workflow-level permissions to contents: read. This follows the principle of least privilege and resolves the OpenSSF Scorecard Token-Permissions warning.

Docs Changes:
N/A

Release Note:
N/A

Move contents: write and pull-requests: write permissions from
workflow level to job level in backport.yml, and set the workflow-level
permissions to contents: read. This follows the principle of least
privilege.

Signed-off-by: Gagan H R <hrgagan4@gmail.com>
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.

ci: fix excessive GitHub workflow token permissions

1 participant