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

ci: pin github actions by hash and update via dependabot #6626

Merged
merged 2 commits into from
Feb 4, 2025

Conversation

xopham
Copy link
Contributor

@xopham xopham commented Feb 4, 2025

Summary of changes

  • Add dependabot for github actions
  • Pin actions by hash

Reason for change

Pinning 3rd-party GitHub Actions by commit SHA makes them less vulnerable to compromise of the 3rd party. To avoid outdating and non-verbosity, versions are commented after the SHA and updating via dependabot is introduced that will automatically update the commented version tag as well.

In case of a false commit SHA, this change could break the corresponding workflow. Typically, this does not cause major interruptions, but it can for example affect a release pipeline and require restart causing delays.

Implementation details

Test coverage

Other details

@github-actions github-actions bot added the area:builds project files, build scripts, pipelines, versioning, releases, packages label Feb 4, 2025
@xopham xopham force-pushed the christoph.hamsen/pin-update-gh-actions branch from 3f1f4ed to 3e80624 Compare February 4, 2025 16:35
@xopham xopham marked this pull request as ready for review February 4, 2025 16:35
@xopham xopham requested a review from a team as a code owner February 4, 2025 16:35
Copy link
Member

@andrewlock andrewlock left a comment

Choose a reason for hiding this comment

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

Thanks!

@andrewlock andrewlock merged commit 108670c into master Feb 4, 2025
98 of 101 checks passed
@andrewlock andrewlock deleted the christoph.hamsen/pin-update-gh-actions branch February 4, 2025 17:17
@github-actions github-actions bot added this to the vNext-v3 milestone Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:builds project files, build scripts, pipelines, versioning, releases, packages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants