ilyaka-gmx/Reusable Workflow Context
Expose a reusable workflow's own ref, SHA, repo, and path via the job's OIDC token — no inputs from the caller, no ref duplication.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| audience | Custom audience for the OIDC token request. Rarely needed; leave blank to use the runner's default audience. | no | "" |
Outputs
| name | description |
|---|---|
| workflow_ref | Short ref name of the reusable workflow (e.g. `v2.4.0`, `main`, or a SHA). `refs/tags/` and `refs/heads/` prefixes are stripped. |
| workflow_full_ref | Raw ref of the reusable workflow as emitted by GitHub, preserving any `refs/tags/` or `refs/heads/` prefix. |
| workflow_ref_type | One of `tag`, `branch`, `sha`. |
| workflow_sha | Commit SHA of the reusable workflow file at the invoked ref. |
| workflow_repository | Full `owner/repo` of the reusable workflow. |
| workflow_repository_owner | Owner segment of `workflow_repository`. |
| workflow_path | Path of the reusable workflow file within the repo (e.g. `.github/workflows/ci.yml`). |
| job_workflow_ref | The raw `job_workflow_ref` OIDC claim value. |