Skip to content

defense-in-depth improvements to GitHub actions workflows - #283

Open
bobcallaway wants to merge 1 commit into
google:mainfrom
bobcallaway:gha_zizmor
Open

defense-in-depth improvements to GitHub actions workflows#283
bobcallaway wants to merge 1 commit into
google:mainfrom
bobcallaway:gha_zizmor

Conversation

@bobcallaway

Copy link
Copy Markdown

these are defense-in-depth improvements on your CI workflows:

  • actions refs are pinned by hash instead of by floating version tags
  • git credentials (containing the GITHUB_TOKEN) are not persisted in the local workspace when the code is checked out
  • default read-only permissions are codified at the top level of the workflows, adhering to the principle of least privilege

it would be good to also configure dependabot to keep these actions up to date, but I can do that in a separate PR if you'd like.

Signed-off-by: Bob Callaway <bcallaway@google.com>
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.

1 participant