Skip to content

chore: renovate bot setting to pin actions to a full length commit SHA#4768

Merged
zkochan merged 1 commit into
pnpm:mainfrom
turrisxyz:naveensrinivasan/renovate-bot
May 20, 2022
Merged

chore: renovate bot setting to pin actions to a full length commit SHA#4768
zkochan merged 1 commit into
pnpm:mainfrom
turrisxyz:naveensrinivasan/renovate-bot

Conversation

@naveensrinivasan

Copy link
Copy Markdown
Contributor

Pin actions to a full length commit SHA

Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release.
Pinning to a particular SHA helps mitigate the risk of a bad actor adding a backdoor to the action's repository,
as they would need to generate a SHA-1 collision for a valid Git object payload.

- https://docs.renovatebot.com/modules/manager/github-actions/#additional-information

- Pinned actions by SHA https://github.com/ossf/scorecard/blob/main/docs/checks.md#pinned-dependencies

>Pin actions to a full length commit SHA

>Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release.
> Pinning to a particular SHA helps mitigate the risk of a bad actor adding a backdoor to the action's repository,
> as they would need to generate a SHA-1 collision for a valid Git object payload.

- https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-third-party-actions
- https://github.com/renovatebot/.github/blob/b0c3aa85ef2bb242580f20b02b380ca532b4ce17/default.json#L13
@naveensrinivasan naveensrinivasan requested a review from zkochan as a code owner May 20, 2022 02:12
@welcome

welcome Bot commented May 20, 2022

Copy link
Copy Markdown

💖 Thanks for opening this pull request! 💖
Please be patient and we will get back to you as soon as we can.

@BlackHole1 BlackHole1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM.

pinGitHubActionDigests implement see: renovatebot/renovate#10835

@zkochan zkochan merged commit 35a730a into pnpm:main May 20, 2022
@welcome

welcome Bot commented May 20, 2022

Copy link
Copy Markdown

Congrats on merging your first pull request! 🎉🎉🎉

This was referenced May 22, 2022
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