Fix ArgumentError Malformed version number in github actions #10338
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What are you trying to accomplish?
Reduce the number of malformed version errors in Sentry for github actions ecosystem.
Fix issue: https://github.com/github/dependabot-updates/issues/6446
More than 8k occurrences of this issue in Sentry and a large proportion of these were in the github actions ecosystem.
Within github actions, itself, there are also multiple use cases that lead to this issue. The fix in this PR is for the use cases where we create a security update PR (https://github.com/dependabot/dependabot-core/blob/main/updater/lib/dependabot/updater/operations/create_security_update_pull_request.rb#L98) or a group update PR: https://github.com/dependabot/dependabot-core/blob/main/updater/lib/dependabot/updater/operations/create_group_update_pull_request.rb#L61
Variations of this issue:
https://github.com/github/dependabot-updates/issues/6446
How will you know you've accomplished your goal?
Once this has been deployed. I expect zero occurrences of this issue from these use cases. This can be monitored in sentry.
Checklist