114114 IMAGE_REGISTRY : ${{ inputs.REGISTRY }}
115115 IMAGE_PATH : ${{ inputs.image-path }}
116116 SIGNING_ENABLED : ${{ (secrets.SIGNING_SECRET != null && secrets.SIGNING_SECRET != '') || inputs.KMS_KEY_ALIAS != '' }}
117+ INTERNAL_ACTIONS_REF : sbom
117118
118119concurrency :
119120 group : ${{ github.workflow }}-${{ github.ref || github.run_id }}-${{ inputs.image-name }}
@@ -130,24 +131,11 @@ jobs:
130131 - name : Checkout
131132 uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v4
132133
133- - name : Determine actions ref
134- id : actions_ref
135- shell : bash
136- run : |
137- echo "${{ github.workflow_ref }}, ${{ github.action_ref }}"
138- WF_REF='${{ github.workflow_ref }}'
139- REF="${WF_REF##*@}"
140- # Fallback to main if empty (should not normally happen)
141- if [ -z "$REF" ]; then
142- REF='main'
143- fi
144- echo "ref=$REF" >> "$GITHUB_OUTPUT"
145-
146134 - name : Checkout github actions
147135 uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v4
148136 with :
149137 repository : AlmaLinux/atomic-ci
150- ref : ${{ steps.actions_ref.outputs.ref }}
138+ ref : ${{ env.INTERNAL_ACTIONS_REF }}
151139 path : github-actions
152140
153141 - uses : ./github-actions/.github/actions/prepare-build
@@ -184,27 +172,11 @@ jobs:
184172 with :
185173 fetch-depth : 0 # Fetch all history for changelog generation
186174
187- - name : Determine actions ref
188- id : actions_ref
189- shell : bash
190- env :
191- GITHUB : ${{ toJSON(github) }}
192- run : |
193- echo "${{ github.workflow_ref }}, ${{ github.action_ref }}"
194- echo ${GITHUB}
195- WF_REF='${{ github.workflow_ref }}'
196- REF="${WF_REF##*@}"
197- # Fallback to main if empty (should not normally happen)
198- if [ -z "$REF" ]; then
199- REF='main'
200- fi
201- echo "ref=$REF" >> "$GITHUB_OUTPUT"
202-
203175 - name : Checkout github actions
204176 uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v4
205177 with :
206178 repository : AlmaLinux/atomic-ci
207- ref : ${{ steps.actions_ref.outputs.ref }}
179+ ref : ${{ env.INTERNAL_ACTIONS_REF }}
208180 path : github-actions
209181
210182 - uses : ./github-actions/.github/actions/build
@@ -263,23 +235,11 @@ jobs:
263235 major-version : ${{ steps.push_manifest.outputs.major-version }}
264236 signing-enabled : ${{ env.SIGNING_ENABLED }}
265237 steps :
266- - name : Determine actions ref
267- id : actions_ref
268- shell : bash
269- run : |
270- WF_REF='${{ github.workflow_ref }}'
271- REF="${WF_REF##*@}"
272- # Fallback to main if empty (should not normally happen)
273- if [ -z "$REF" ]; then
274- REF='main'
275- fi
276- echo "ref=$REF" >> "$GITHUB_OUTPUT"
277-
278238 - name : Checkout github actions
279239 uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v4
280240 with :
281241 repository : AlmaLinux/atomic-ci
282- ref : ${{ steps.actions_ref.outputs.ref }}
242+ ref : ${{ env.INTERNAL_ACTIONS_REF }}
283243 path : github-actions
284244
285245 - uses : ./github-actions/.github/actions/manifest
0 commit comments