Skip to content

ci: set least-privilege GITHUB_TOKEN permissions (SEC-844) - #291

Draft
Matt Sutkus (msuitcase) wants to merge 1 commit into
sec-842/persist-credentialsfrom
sec-842/least-privilege-permissions
Draft

Matt Sutkus (msuitcase) wants to merge 1 commit into
sec-842/persist-credentialsfrom
sec-842/least-privilege-permissions

Conversation

@msuitcase

Copy link
Copy Markdown

What

Top-level permissions: contents: read. No job in this workflow writes to the repo.

Why

The workflow had no permissions: block, so every job got the repo's default token scope.

Stack

  1. ci: don't persist GITHUB_TOKEN in checkout (SEC-844) #290: persist-credentials: false
  2. This PR (based on ci: don't persist GITHUB_TOKEN in checkout (SEC-844) #290): merge after it

Part of SEC-842.

Default the workflow token to read-only. No job in this workflow writes
to the repo.

Refs SEC-844
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