-
Notifications
You must be signed in to change notification settings - Fork 34
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
Missing lib
build products
#168
Comments
Hi, sorry for late reply, but you discovered already that this project only commits My rationale is that |
Thanks for the reply. It’s been a while since I looked at this, but iirc dependabot does not know which branch to use when bumping a sha-based dependency. So if the build products are not committed on main, dependabot will always try to bump to a broken version of the dependency :( |
Example bump PR from dependabot: foxglove/mcap#1140 (Also, in this particular case we've stopped using this action since Homebrew upstream is auto-bumping the formula for us) |
Ah that's unfortunate. I can see how it's a big problem if you pin to a valid SHA from the I'm not sure exactly how Dependabot approaches upgrading pinned Actions, but I seem to recall that there is a syntax in the comments such as: - uses: mislav/bump-homebrew-formula-action@b3327118b2153c82da63fd9cbf58942146ee99f0 # v3.1 Now, in theory, Dependabot should understand that you've pinned to a tagged release, and will only try to upgrade to other tagged releases. (Tagged releases in this repository are guaranteed to have build products checked in.) I understand that you're not using this Action anymore, but this could help other people in the meantime. For the sake of ease of using Dependabot, I will consider checking in build products to |
I do see that versions in comments will be parsed & updated (https://github.blog/changelog/2022-10-31-dependabot-now-updates-comments-in-github-actions-workflows-referencing-action-versions/ / dependabot/dependabot-core#5951). I'm not sure if this will actually impact which branch it uses to choose the new SHA, or if it's just updating the comment to match whatever SHA it chooses... |
I guess another approach could be to change the default branch to v3, assuming dependabot might be using the default branch. |
We used to pin this workflow by SHA, e.g.
This pinning technique is recommended in https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-third-party-actions
However, eventually as we bumped the version to latest main (with the help of Dependabot), we started encountering this error:
It seems like this is because
lib
is not committed to the repo. It is present in thev3
branch, but not onmain
. Would it be possible to keep this present and up to date? This seems to be what other actions do, e.g.: https://github.com/actions/checkout/tree/main/distThe text was updated successfully, but these errors were encountered: