Skip to content
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

Pin composed actions to their current releases' SHA #78

Conversation

brrygrdn
Copy link
Contributor

Thanks for all your work maintaining this action, I'm hoping to use it for a project and had one minor suggestion about how the composed Actions are maintained.

A best practice we've been adopting in workflows and composite actions is to prefer to use the commit SHA of each release tag to avoid any scenarios where the tag is reassigned to a different commit after we've verified the downstream changes and upgraded.

This is fairly manageable on a mechanical level because Dependabot is smart enough to detect and maintain this practice, which I verified on my fork by deliberately downgrading and double-checking it upgraded maintaining the pinned SHA notation.

I realise that this will have a potential increase in the frequency upgrade PRs will be opened as this is moving from a major-version pin to a patch-version pin for three of the dependencies, so I'm curious if this is something you find beneficial or not?

@slawekjaranowski slawekjaranowski added the enhancement New feature or request. label May 17, 2024
@slawekjaranowski slawekjaranowski force-pushed the brrygrdn/pin-composed-actions-versions-by-sha branch from db85a9d to e2f38a4 Compare May 17, 2024 17:52
@slawekjaranowski slawekjaranowski merged commit 5a52b9d into s4u:main May 17, 2024
27 checks passed
@brrygrdn brrygrdn deleted the brrygrdn/pin-composed-actions-versions-by-sha branch May 20, 2024 09:59
@daniel-beck
Copy link

actions/setup-java@v4 was skipped, any particular reason?

@brrygrdn
Copy link
Contributor Author

@daniel-beck hmm, no, I think that was purely oversight on my part

@slawekjaranowski
Copy link
Member

setup-java done in #93

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request.
Development

Successfully merging this pull request may close these issues.

4 participants