-
Notifications
You must be signed in to change notification settings - Fork 41
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
Make commit hashes account for versions in comments #1360
Comments
Thanks @jauderho for informing that dependabot implemented this. Will test it out and add support for this ASAP. |
I believe there's already an issue about this #1087. |
Sorry, I had forgotten that there was already an issue tracking this. No problem. We can close both once this is done. @Devils-Knight, can you please take this up? You can do a quick POC to see how dependabot updates the version/ tag in the comments, and then bring back the earlier code that was adding the version/ tag in comment as part of pinning. |
Thanks @Devils-Knight! This is now deployed to INT environment. @jauderho and @lucacome can you please test it here (https://int1.stepsecurity.io) and let me know if it looks ok? There is a single space between commit SHA and Also tagging @n-th, @ericcornelissen, @tellison, and @jkremser from issue #1087 in case you want to share feedback on the change. Thanks! |
Two quick thoughts:
|
+1, the name of the specific release would be preferable. |
I agree, minor and patch numbers would be nice 👍 |
Thanks for the feedback!
|
I keep going back and forth about |
I received a Pull Request from Renovate on one of my repositories today where it actually remove the "tag=" prefix upon updating an action 😅 The diff looks like: - uses: gitleaks/gitleaks-action@1938557f6a58837331b99822ab17b8e536e7bef9 # tag=v2.3.0
+ uses: gitleaks/gitleaks-action@e7168103501562d92f3f52e2c69c253cff74438d # v2.3.1 |
Thanks @ericcornelissen for the info! I think this is the issue renovatebot/renovate#18640 We can do the short tag format as earlier then. @Devils-Knight is working on converting vX -> (current) vX.Y.Z. I will update this thread when it is deployed to INT environment. |
The change for converting vX -> (current) vX.Y.Z is now in INT. Please check it out here: https://int1.stepsecurity.io Please let me know if it looks ok. |
Looks good @varunsh-coder! Can’t wait to try it on my workflows. |
@varunsh-coder thanks for adding this new functionality. I've had a play with it on our actions. When I run on this repo:
The line 21 diff suggests: Which "v1" hash has been selected from the g2rm/create-or-update-pull-request-action releases? Justs eyeballing those releases I don't see one starting |
@tellison this is an interesting case. Looks like For reference, this code is used to get the commit: |
This change has now been merged into Please let me know if you find any issues. |
Thanks everyone for your inputs the feedback on this issue! We also recently added support for creating or updating dependabot config and adding CodeQL (if missing). They show up as options at https://app.stepsecurity.io/securerepo |
Dependabot Core just added support for this. See dependabot/dependabot-core#4691
This is more to make sure that secure-workflows tracks this accordingly when doing the initial substitution to a hash. Ideally, the initial substitution will include the version comment for Dependabot to update downstream.
The text was updated successfully, but these errors were encountered: