Skip to content

chore: use minimal permissions for workflows #422

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

Merged
merged 2 commits into from
Jun 21, 2021

Conversation

jawnsy
Copy link
Contributor

@jawnsy jawnsy commented Jun 19, 2021

Restrict the GITHUB_TOKEN issued for builds to reads of respository
metadata and file contents.

Restrict the GITHUB_TOKEN issued for builds to reads of respository
metadata and file contents.
@jawnsy jawnsy self-assigned this Jun 19, 2021
@jawnsy jawnsy marked this pull request as ready for review June 19, 2021 14:36
@jawnsy jawnsy requested review from greyscaled and khorne3 June 19, 2021 14:36
Copy link
Contributor

@greyscaled greyscaled left a comment

Choose a reason for hiding this comment

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

Nice change! Unfortunately we're seeing this now:

https://github.com/cdr/docs/pull/422/checks?check_run_id=2865230382#step:10:15

Screenshot from 2021-06-21 10-03-02

@jawnsy
Copy link
Contributor Author

jawnsy commented Jun 21, 2021

Ah good call, I was changing repo settings at the same time and broke that one, should be fixed now:

image

@khorne3
Copy link
Contributor

khorne3 commented Jun 21, 2021

It looks like we'll need more permissions for the specified actions?

Screen Shot 2021-06-21 at 11 01 16 AM

@jawnsy
Copy link
Contributor Author

jawnsy commented Jun 21, 2021

Yeah, might need write access to pull_requests 🤔 will try that next

@github-actions
Copy link
Contributor

github-actions bot commented Jun 21, 2021

✨ Coder.com for PR #422 deployed! It will be updated on every commit.

@jawnsy jawnsy requested a review from greyscaled June 21, 2021 17:33
@jawnsy jawnsy merged commit 07f59d8 into main Jun 21, 2021
@jawnsy jawnsy deleted the jawnsy/chore-reduce-workflow-permissions branch June 21, 2021 18:08
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.

3 participants