Skip to content

Add specific permissions to workflows under .github/workflows#231

Merged
wagoid merged 2 commits intowagoid:masterfrom
step-security:master
Sep 11, 2021
Merged

Add specific permissions to workflows under .github/workflows#231
wagoid merged 2 commits intowagoid:masterfrom
step-security:master

Conversation

@varunsh-coder
Copy link
Copy Markdown
Contributor

This PR adds specific permissions to the existing ci.yml workflow under .github/workflows.

Background

I am the founder of Step Security, and have implemented a GitHub App to automatically restrict permissions for the GITHUB_TOKEN in workflows. This is a security best practice as per the GitHub Actions hardening guide.

I am trying the App out on important public repositories, by forking them, installing the App on the fork, and manually creating PRs with the fixed workflows. The App automatically fixes permissions when a new PR is created that changes a workflow, so feel free to install it for future workflows, or try it out on other repos. It will stay free for public repos...

I have manually reviewed the changes, and they do look good to me. If something looks off, please let me know. If you have feedback, would love to hear it. Unfortunately, the other workflow could not be fixed, since it uses your action as a local action (./) which is not supported as of now. Thanks!

@jdbruijn jdbruijn self-requested a review September 10, 2021 11:05
@wagoid
Copy link
Copy Markdown
Owner

wagoid commented Sep 11, 2021

Awesome initiative @varunsh-coder! LGTM

@wagoid wagoid merged commit 0e361e0 into wagoid:master Sep 11, 2021
@varunsh-coder
Copy link
Copy Markdown
Contributor Author

Thanks @wagoid!

I just started on this and I am eager to get some early adopters. Request you to please try out the app on some of your repos that have workflow files. I can walk you through the process if you want. It should only take couple of minutes. Just tag me on this thread if you need help installing the app or if it does not work as expected, and I will look into it. Thanks!

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.

4 participants