Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

github: explicitly set workflow permissions #1663

Merged
merged 1 commit into from
Nov 4, 2021

Conversation

jku
Copy link
Member

@jku jku commented Nov 4, 2021

  • current workflow only needs to read git content
  • if the workflow in the future does need write access (or even other read access than the git repo), it's good to
    see permissions explicitly changing

For context: "pull_request" runs never have any write access anyway, so this
significantly changes only the "push" runs that happen when branches are
merged to develop.

Signed-off-by: Jussi Kukkonen jkukkonen@vmware.com

Fixes #1662

* current workflow only needs to read git content
* if the workflow in the future does need write access, it's good to
  see permissions explicitly changing

For context: "pull_request" runs never have write access anyway, so this
significantly changes only the "push" runs that happen when branches are
merged to develop.

Signed-off-by: Jussi Kukkonen <jkukkonen@vmware.com>
@coveralls
Copy link

Pull Request Test Coverage Report for Build 1420674927

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 97.442%

Totals Coverage Status
Change from base Build 1420270018: 0.0%
Covered Lines: 3946
Relevant Lines: 4030

💛 - Coveralls

@jku
Copy link
Member Author

jku commented Nov 4, 2021

For anyone wondering: you can see the permissions by going to the job logs, opening "Set up job", then opening "GITHUB_TOKEN Permissions"

Copy link
Member

@lukpueh lukpueh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cross-checked with relevant GH docs. LGTM. Thanks, Jussi!

@lukpueh lukpueh merged commit d70c3b3 into theupdateframework:develop Nov 4, 2021
@lukpueh lukpueh mentioned this pull request Dec 13, 2021
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.

github actions: set workflow permissions to read-only
3 participants