Skip to content
This repository was archived by the owner on Mar 19, 2026. It is now read-only.

Commit fc823de

Browse files
committed
Remove actions_ref from shared workflows
1 parent c1ecf72 commit fc823de

4 files changed

Lines changed: 18 additions & 13 deletions

File tree

.github/workflows/multiarch-image-build-sign-provenance-SLSA.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ name: Build Multi-Arch Image With Signature and Provenance SLSA
2323
description: Index digest for arm64 build.
2424
required: true
2525
type: string
26-
actions_ref:
27-
description: The version of github-actions
28-
type: string
29-
required: true
3026

3127
jobs:
3228

@@ -38,12 +34,17 @@ jobs:
3834
platform_digest_arm64: ${{ steps.platform-digest-arm64.outputs.digest }}
3935

4036
steps:
37+
- name: Resolve workflow ref
38+
id: workflow-ref
39+
run: |
40+
set -euo pipefail
41+
echo "ref=${GITHUB_WORKFLOW_REF##*@}" >> "$GITHUB_OUTPUT"
4142
4243
- name: Checkout
4344
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4445
with:
4546
repository: aicage/github-actions
46-
ref: ${{ inputs.actions_ref }}
47+
ref: ${{ steps.workflow-ref.outputs.ref }}
4748
path: .github-actions
4849

4950
- name: Read image platform digest (amd64)
@@ -110,12 +111,17 @@ jobs:
110111
runs-on: ubuntu-latest
111112

112113
steps:
114+
- name: Resolve workflow ref
115+
id: workflow-ref
116+
run: |
117+
set -euo pipefail
118+
echo "ref=${GITHUB_WORKFLOW_REF##*@}" >> "$GITHUB_OUTPUT"
113119
114120
- name: Checkout
115121
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
116122
with:
117123
repository: aicage/github-actions
118-
ref: ${{ inputs.actions_ref }}
124+
ref: ${{ steps.workflow-ref.outputs.ref }}
119125
path: .github-actions
120126

121127
- name: Log in to Docker Registry

.github/workflows/multiarch-image-build-sign-provenance.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ name: Build Multi-Arch Image With Signature and Provenance
2323
description: Index digest for arm64 build.
2424
required: true
2525
type: string
26-
actions_ref:
27-
description: The version of github-actions
28-
type: string
29-
required: true
3026

3127
jobs:
3228

@@ -35,12 +31,17 @@ jobs:
3531
runs-on: ubuntu-latest
3632

3733
steps:
34+
- name: Resolve workflow ref
35+
id: workflow-ref
36+
run: |
37+
set -euo pipefail
38+
echo "ref=${GITHUB_WORKFLOW_REF##*@}" >> "$GITHUB_OUTPUT"
3839
3940
- name: Checkout
4041
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4142
with:
4243
repository: aicage/github-actions
43-
ref: ${{ inputs.actions_ref }}
44+
ref: ${{ steps.workflow-ref.outputs.ref }}
4445
path: .github-actions
4546

4647
- name: Log in to Docker Registry

.github/workflows/test-build-SLSA.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,5 +136,4 @@ jobs:
136136
purpose_tag: ${{ needs.set-globals.outputs.PURPOSE_TAG }}
137137
index_digest_amd64: ${{ needs.build.outputs.INDEX_DIGEST_amd64 }}
138138
index_digest_arm64: ${{ needs.build.outputs.INDEX_DIGEST_arm64 }}
139-
actions_ref: ${{ github.ref }}
140139
secrets: inherit

.github/workflows/test-build.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,5 +136,4 @@ jobs:
136136
purpose_tag: ${{ needs.set-globals.outputs.PURPOSE_TAG }}
137137
index_digest_amd64: ${{ needs.build.outputs.INDEX_DIGEST_amd64 }}
138138
index_digest_arm64: ${{ needs.build.outputs.INDEX_DIGEST_arm64 }}
139-
actions_ref: ${{ github.ref }}
140139
secrets: inherit

0 commit comments

Comments
 (0)