GitHub warnings/errors after I move permissions to jobs #3997
Unanswered
brianjmurrell
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm implementing some of the fixes that Scorecard is suggesting. I am currently fixing up Token-Permissions that are being flagged in some of our workflows. So accordingly I have changed the top (i.e. workflow) level permissions as such:
and added the needed permissions to the job:
But now in the PR where I am doing this AND have added the Scorecard workflow I am getting new errors from making the suggested change:
But if the above moving of the
checks: write
permission from the workflow permissions to the job permissions is the right thing to do, why am I still getting a Check failure for Token-Permissions? It is most certain that a job in the workflow needschecks: write
as it breaks if I remove it:So what's my path forward here given this new Token-Permissions error when taking the suggested action?
Beta Was this translation helpful? Give feedback.
All reactions