TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Improve the security of your GitHub Actions in one command

3 pointsby mheapover 5 years ago

1 comment

mheapover 5 years ago
I recently read <a href="https:&#x2F;&#x2F;julienrenaux.fr&#x2F;2019&#x2F;12&#x2F;20&#x2F;github-actions-security-risk&#x2F;" rel="nofollow">https:&#x2F;&#x2F;julienrenaux.fr&#x2F;2019&#x2F;12&#x2F;20&#x2F;github-actions-security-r...</a> which reminds us that depending on external GitHub Actions is risky as branch and tag refs are mutable<p>&gt; Using GitHub actions with branch names or tags is unsafe. Use commit hash instead.<p>Instead of updating to use a SHA everywhere, I wrote a tool to do it for you, making a note of the original version (e.g. @master).<p>This allows you to run the tool in the future and have the sha updated to the most recent version whilst still pinning to a specific commit.