Skip to content

Conversation

@ashishkurmi
Copy link

Description

This PR adds minimum token permissions for the GITHUB_TOKEN in GitHub Actions workflows using https://github.com/step-security/secure-workflows.

GitHub Actions workflows have a GITHUB_TOKEN with write access to multiple scopes.
Here is an example of the permissions in one of the workflows:
https://github.com/ReactiveX/RxJava/runs/8243359652?check_suite_focus=true#step:1:19

After this change, the scopes will be reduced to the minimum needed for the following workflows:

  • gradle_release.yml
  • gradle_snapshot.yml

The following workflow files already have the least privileged token permission set:

  • gradle-wrapper-validation.yml
  • gradle_branch.yml
  • gradle_jdk11.yml
  • gradle_pr.yml

Motivation and Context

Signed-off-by: Ashish Kurmi akurmi@stepsecurity.io

Signed-off-by: Ashish Kurmi <akurmi@stepsecurity.io>
@akarnokd
Copy link
Member

akarnokd commented Sep 9, 2022

It doesn't work. We need to write back to the repo.

#7410 (comment)

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.

2 participants