canonical/Get reusable workflow version
Get commit SHA that GitHub Actions reusable workflow was called with
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Jun 23, 2026
- License
- Apache 2.0
Pinned Snippet
uses: canonical/get-workflow-version-action@ba22d0abdc1eda539aa3ac81af1cfee160b10714 # v1.0.4tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| repository-name | Name of reusable workflow repository (e.g. "canonical/data-platform-workflows") | yes | — |
| file-name | Name of reusable workflow file (e.g. "build_charm.yaml") | yes | — |
| github-token | GitHub 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 | — |
Outputs
| name | description |
|---|---|
| sha | Commit SHA of reusable workflow |