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

Pin GitHub Actions workflow dependencies by hash and restrict permissions #1422

Merged
merged 1 commit into from
May 11, 2022

Conversation

mumoshu
Copy link
Collaborator

@mumoshu mumoshu commented May 9, 2022

as recommended in https://github.com/ossf/scorecard/blob/5758364c82f7fc72b256f9a8cfc89dc550d7dd66/docs/checks.md#pinned-dependencies and https://github.com/ossf/scorecard/blob/5758364c82f7fc72b256f9a8cfc89dc550d7dd66/docs/checks.md#token-permissions

The permission changes should be fine as it only makes the ones that had quite restricted default permissions to explicitly have contents:read permission only.

Regarding the version pinning, I suppose renovate would handle updates for deps pinned with commit IDs. If it turned out to not work, I'll explore ways to deal with it, like updating renovate config somehow or even consider migrating to dependabot.

Ref #1298

@mumoshu mumoshu requested a review from toast-gear as a code owner May 9, 2022 01:40
@mumoshu mumoshu changed the title Pin GitHub Actions workflow dependencies by hash Pin GitHub Actions workflow dependencies by hash and restrict permissions May 9, 2022
@mumoshu mumoshu added this to the v0.24.0 milestone May 10, 2022
@toast-gear toast-gear merged commit d01595c into master May 11, 2022
@toast-gear toast-gear deleted the secure-workflows branch May 11, 2022 10:41
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.

None yet

2 participants