codad5/Verify Branch Ancestry

Enforce staging-first deployments by verifying commit ancestry and minimum soak time before production.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
required-branchesComma-separated list of branch names that must contain the commit (e.g., "staging,dev")yesstaging
current-branchCurrent branch being checked (auto-detected if not provided)no""
fail-on-missingWhether to fail the workflow if commit is not found in required branchesnotrue
check-merge-commitsWhether to validate merge commits by checking their parentsnotrue
minimum-ageMinimum time the commit must exist in required branches (e.g., "1h", "30m", "2d")no0m
timezoneTimezone for time calculations (e.g., "UTC", "America/New_York")noUTC
verboseEnable detailed logging for debuggingnofalse
github-tokenGitHub token for API access (usually secrets.GITHUB_TOKEN)no${{ github.token }}
namedescription
verifiedWhether the commit verification passed (true/false)
commit-shaThe commit SHA that was verified
source-branchThe branch from which the commit originated
merge-commitWhether the current commit is a merge commit (true/false)
commit-ageAge of the commit in the source branch (human readable, e.g., "2 hours ago")
minimum-age-metWhether the minimum age requirement was met (true/false)