Skip to content
npikallPublic

About

Pin GitHub Action Jobs

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

anchor

Pin GitHub Actions uses: directives to their exact commit SHA.

# before
- uses: actions/checkout@v4

# after
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

Install

go install github.com/npikall/anchor@latest

Usage

anchor [flags] <workflow.yml>
Flag Description
-u Pin to latest tag instead of current ref
-i Overwrite file in place
-v Warn about skipped local/docker actions

Print pinned workflow to stdout:

anchor .github/workflows/ci.yml

Pin in place:

anchor -i .github/workflows/ci.yml

Update all actions to their latest tag:

anchor -u -i .github/workflows/ci.yml

About

Pin GitHub Action Jobs

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages