step-security/Branch Names

Retrieve GitHub branch or tag information without the /ref/* prefix

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
strip_tag_prefixThe prefix that should be stripped from the tag e.g. `v` -> with a tag `v0.0.1` -> returns `0.0.1`no""
strip_branch_prefixThe prefix that should be stripped from the branch e.g. `release/` -> with a branch `release/1.0` -> returns `1.0`no""
replace_slashes_with_hyphensReplace forward slashes with hyphens in branch names e.g. `feature/test` -> `feature-test`nofalse
namedescription
is_defaultReturns `"true"` if the current branch is the default else `"false"`.
is_tagReturns `"true"` if the current branch is a tag else `"false"`.
default_branchThe default branch name e.g `main` OR `master`
current_branchThe current branch name regardless of event_type e.g `main`, `feature/test`
base_ref_branchThe target branch of a pull request or tag e.g `main`
head_ref_branchThe source branch of a pull request e.g `feature/test`
ref_branchThe branch that triggered the workflow run. e.g `1/merge`, `main`
tagThe tag that triggered the workflow run. e.g `v0.0.1`, `0.0.1`