slack-github-action icon indicating copy to clipboard operation
slack-github-action copied to clipboard

Immutable Releases

Open CalvinRodo opened this issue 11 months ago • 4 comments

Enabling this will make it easier to use this action in a secure way, with mutable tags I need to either fork this action or pin to a Git SHA to ensure that I am using a known version of this action, with an immutable release I can pin to the tag and be confident the code won't be maliciously modified due to a compromise of this repo.

https://docs.github.com/en/actions/how-tos/create-and-publish-actions/using-immutable-releases-and-tags-to-manage-your-actions-releases

It also makes it easier to understand what version we are using in workflows as we can view the version number instead of a sha

CalvinRodo avatar Dec 19 '25 18:12 CalvinRodo

Hey @CalvinRodo! 👋 Thanks for sharing this update with us - it looks quite promising 🐙

At the moment our release process creates then moves the release tag on "publish" to a packaged commit to avoid clutter on the main branch. More details might exist in #444.

I agree we should revisit this for immutable tagging! Perhaps the release branch is created and tagged before publishing a release?

Let's keep this issue open towards an updated publish workflow. In the meantime I might suggest using hashes with a version comment:

- uses: slackapi/slack-github-action@91efab103c0de0a537f72a35f6b8cda0ee76bf0a # v2.1.1

The kind @dependabot does well with updating that comment, but I agree that this might not be a great workaround 🤖

zimeg avatar Jan 09 '26 00:01 zimeg

Would you kindly consider using Immutable Releases ?

AskeFC avatar Apr 14 '26 13:04 AskeFC

@AskeFC Thanks for the bump! I'm understanding now that immutable releases are not the same as immutable tags so we can perhaps make this change as we revisit or publishing process 📚

https://github.com/slackapi/slack-github-action/blob/dd817b08e9a373b33f039b7d0ab4328a71425c78/.github/maintainers_guide.md?plain=1#L77

The current approach prefers an automated release that creates tags that are moved. Let's explore other options now 🤓

zimeg avatar Apr 22 '26 23:04 zimeg

🚀 The most recent v3.0.2 release is immutable! Thanks again for sharing this with us 📰 ✨

Image

zimeg avatar Apr 23 '26 08:04 zimeg