canonical/Get reusable workflow version

Get commit SHA that GitHub Actions reusable workflow was called with

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jun 23, 2026
License
Apache 2.0

Pinned Snippet

workflow.ymlSHA-pinned
uses: canonical/get-workflow-version-action@ba22d0abdc1eda539aa3ac81af1cfee160b10714 # v1.0.4

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

namedescriptionrequireddefault
repository-nameName of reusable workflow repository (e.g. "canonical/data-platform-workflows")yes
file-nameName of reusable workflow file (e.g. "build_charm.yaml")yes
github-tokenGitHub token Required for private repositories (for GitHub API call) Pass `secrets.GITHUB_TOKEN` context to this input (https://docs.github.com/en/actions/learn-github-actions/contexts#secrets-context) The job where this action is called needs ``` permissions: actions: read ``` https://docs.github.com/en/actions/security-guides/automatic-token-authentication no
namedescription
shaCommit SHA of reusable workflow