"uses: Actions@version" get a warning for newer versions
Is your feature request related to a problem? Please describe. I'm always frustrated when I see workflows using old Actions versions, they're probably missing security and performance updates with the old versions. With huge workflows it's time consuming to check for each Actions if they're on their latest version.
Describe the solution you'd like I would like to get a warning when in my workflows I use old versions of them. Just like when typing I write the wrong version and for example I get the error
Unable to resolve action
actions/checkout@v4e, repository or version not found
Additional context It seems easy to me to add this feature, I would like to do it by myself. Can I get the needs working or good first issue label to start working on it? I think I just need to add a check to the latest version here in the code and then push to diagnostics a DiagnosticSeverity.Warning or .Information as the severity key https://github.com/actions/languageservices/blob/bdee10160441ad911678a11f93ddaf08c4599f70/languageservice/src/validate-action.ts#L66
There's already a related issue in the github/vscode-github-actions repo, however I do think this is the right way of doing it without adding new UI components to the main extension
Hi @Gioee !
I'd like to comment on your analysis of the code.
I noticed that the deprecationMessage in validate-action.ts is actually checking if a specific input parameter of an action is deprecated, not the action version itself Definition.
Metadata syntax for GitHub Actions
To detect if an action's version is outdated, a different approach would be needed. This would likely involve comparing the current version with the latest available version of the action.
Are you still working on this issue? If not, I'd be interested in taking it over and implementing this feature.
Hi @kfess No I've not been working on this issue cause I was waiting for the approval labels.
Sure go ahead and work on it. Hmu if you need any kind of help.