liquidlogiclabs/Git Commit Info

Gets information about a commit (including short and long SHA) using an offset from HEAD. Only uses local git commands.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jul 5, 2026
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: liquidlogiclabs/git-action-commit-info@24aa76fa373d27e373da2c3657f97720032b114e # v2.0.3

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
offsetOffset from HEAD to look up (defaults to 0 which means HEAD). Always goes backwards in history (0 = HEAD, 1 = HEAD~1, 2 = HEAD~2, etc.). Negative offsets are accepted but converted to absolute value (e.g., -1 becomes 1).no0
verboseEnable verbose debug logging. Also enabled when ACTIONS_STEP_DEBUG=true.nofalse
namedescription
shaFull commit SHA (40 characters)
short-shaShort commit SHA (7 characters)
messageCommit message (first line/subject)
message-rawFull commit message (includes all lines, preserves newlines)
authorAuthor name
author-emailAuthor email address
dateCommit date (ISO format)
date-isoCommit date in ISO 8601 format