Skip to content

dgwhited/github-actions-tag-2-sha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tag2SHA

A tool for converting GitHub Actions tags to SHA references.

Installation

# Install directly from GitHub repository
pip install git+https://github.com/dgwhited/github-actions-tag-2-sha.git

Usage

# Basic usage
tag2sha .github/workflows/*.yml

# Preview changes without making them
tag2sha --dry-run .github/workflows/*.yml

# Make changes with git operations
tag2sha --branch="update-actions" --commit-msg="Update actions to use SHA" --push .github/workflows/*.yml

# Convert main/master to latest release
tag2sha --convert-main-to-release .github/workflows/*.yml

# Skip git operations
tag2sha --no-git .github/workflows/*.yml

Features

  • Converts GitHub Actions tag references to commit SHA references
  • Adds comments with original tag versions for reference
  • Handles version references like 'v4' by using the latest matching tag
  • Can convert 'main' branch references to the latest release
  • Supports git branch creation, commits, and pushing
  • Handles both lightweight and annotated tags

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages