-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Dependabot not detecting the latest version of a Github action #5017
Comments
@tyrann0us Did #5516 fix this? #5576 will also change the behavior slightly of how actions with SHAs are upgraded, although I doubt it will affect anything here. |
Hi @jeffwidman, thanks for getting back to me. I just manually ran the Dependabot check, but it still didn't detect updates for
The first included entry shows Dependabot version ( |
Copying what @pavera discovered and posted to an internal channel:
Either way, we'll need to make a judgement call on whether to prefer branch or tag... I'd personally lean toward tag over branch as the expected behavior, but curious what others think... |
I think, since with #5576 we will be actually cloning the repo, we should be able to figure this out unambiguously? |
Possibly, though I don't know that ambiguity is the issue in this case, more a problem of currently defined behavior. Currently given a repo custom-action with branches v1, v2, v3 and tags v1, v1.1, v2, v2.1, v2.2, v3, v3.1 and a workflow that specifies custom-action@v2 Dependabot currently finds the branch v2 (from the @v2 tag) and will only update to head of that branch, so the latest version you'll ever get is v2.2. The above behavior is what I meant by "prefers the branch". We would need to change this behavior to always use tags if we want to have Dependabot update from v2 -> v3. I started work on this change but based on internal discussion we weren't sure how many people were depending on the current behavior to prevent unwanted major version upgrades, so I paused my efforts. |
Thanks for the input @pavera! I checked and at first sight it seems exactly what's happening here, and none of the linked PRs fixes the issue as you suspected. I think this should be fixed, to be honest. I think major updates are ignorable through configuration anyways? |
On second thought, I agree with you here @deivid-rodriguez. The only other ecosystems that I'm aware of where we don't auto-bump to the next major one is |
Hi @jeffwidman, @deivid-rodriguez,
The Dependabot version seems to be newer than
|
Yep yep, that matches our previous conclusion: this issue is different and needs a separate fix. Thanks for confirming 👍. |
I'm pretty sure this was actually fixed by #5918. I had forgotten about this issue and opened that in response to a different report 😅. So I'm closing this as fixed, but if I'm wrong please feel free to reopen! |
Rerun dependabot on https://github.com/DOCGroup/MPC/blob/master/.github/workflows/windows.yml but run-vcpkg is not detected as to be updated |
Then I was indeed wrong, thanks for verifying and providing a public repo that we can use to reproduce this! |
Can confirm that #5918 still does not detect newer versions of |
#5963 is now ready, so this should get fixed soon 👍. |
Yes, I can confirm it finally works! 🎉
Thanks! |
Great, thanks for your patience :) |
Package ecosystem
Manifest location and content before the Dependabot update
dependabot.yml content
Updated dependency
What you expected to see, versus what you actually saw
The workflow references the
ramsey/composer-install
action like so:In the Dependabot logs I see:
There are a couple of things off:
v2
(or to be correctv2.1.0
at the time of writing)f680dac46551dffb2234a240d65ae806c2999dd6
994bb194a4fefcf39449ccf0f7766a4318f1ac76
is the last commit on thev1
branchv2
tagI would expect Dependabot to create a PR and update this action to
v2
.🕹 Bonus points: Smallest manifest that reproduces the issue
(Untested)
Notes
This is a follow-up of #4834 (comment).
CC @mctofu, @greysteil, @jurre, @jakecoffman
The text was updated successfully, but these errors were encountered: