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 GH actions #3727

Merged
merged 2 commits into from
Feb 8, 2023
Merged

Pin GH actions #3727

merged 2 commits into from
Feb 8, 2023

Conversation

marcofranssen
Copy link
Contributor

@marcofranssen marcofranssen commented Jan 2, 2023

Dependabot is also capable of pinning to future tag releases
and will maintain the comment that describes the shasum.

dependabot/dependabot-core#4691

This will ensure you always use the action at the commit when a version bump takes place. Even if someone overwrites the tag with a new (malicious) tag.

Pull Request check list

  • Commit conforms to CONTRIBUTING.md?
  • Proper tests/regressions included?
  • Documentation updated?

Affected functionality

Description of change

Which issue this PR fixes

@evan2645
Copy link
Member

Thanks for opening this @marcofranssen ❤️

I opened an issue related to this, but it definitely seems like a welcome change. We discussed this on a previous contributor call, and one thing we wondered is if it is possible to define these versions and hashes at the top of each worfklow, as a set of variables ... there are many places that we use the same action in each workflow and consolidating the versions might make it easier to manage ... but only if it works (😂) and if dependabot would still update them (unsure...).

Let me know what you think .. thanks again!

@marcofranssen
Copy link
Contributor Author

marcofranssen commented Jan 13, 2023

Dependabot will manage it for you. It only works if it is inline. As soon it moves to environment variable you are on your own. Every time a new version is found dependabot will open a pr that updates the comment and shasum. Then it is up to reviewer to check release notes in pr description, check that build succeeds etc.

You could even make a workflow that auto approves dependabot PRs if it meets certain criteria. So basically automate the review process by looking up the commit hash and compare it with the version tag etc etc. And then automate the merge as well if everything matches up.

@evan2645
Copy link
Member

Ok .. I think this is ready to go, but there are a couple conflicts that look related to recent code signing changes. Mind having a look and then we can get this merged?

@marcofranssen
Copy link
Contributor Author

Sure will do tomorrow.

@evan2645
Copy link
Member

evan2645 commented Feb 7, 2023

Hey @marcofranssen , gentle ping on this, it's ready to go aside from the conflicts

@marcofranssen
Copy link
Contributor Author

Let me check this conflicts first thing tomorrow

@evan2645
Copy link
Member

evan2645 commented Feb 7, 2023

Thank you!! ❤️

Dependabot is also capable of pinning to future tag releases
and will maintain the comment that descibes the shasum.

dependabot/dependabot-core#4691
Signed-off-by: Marco Franssen <[email protected]>
@evan2645 evan2645 merged commit 9d87b9e into spiffe:main Feb 8, 2023
stevend-uber pushed a commit to stevend-uber/spire that referenced this pull request Oct 16, 2023
Dependabot is also capable of pinning to future tag releases
and will maintain the comment that descibes the shasum.

dependabot/dependabot-core#4691

Signed-off-by: Marco Franssen <[email protected]>
Co-authored-by: Evan Gilman <[email protected]>
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.

2 participants