Skip to content

Commit 9d42d7e

Browse files
committed
Fix action SHAs to use commit, not tag object
Annotated git tags have their own object SHA distinct from the commit they point to. GitHub Actions requires the commit SHA. Dereference with ^{} to get the correct value for actions/upload-artifact, astral-sh/setup-uv, aws-actions/configure-aws-credentials, and EnricoMi/publish-unit-test-result-action.
1 parent e832a0e commit 9d42d7e

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/bakery-build-native.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ jobs:
170170

171171
- name: Configure AWS Credentials
172172
if: ${{ inputs.push && steps.filter-steps.outputs.ecr == 'true' }}
173-
uses: aws-actions/configure-aws-credentials@a89a83ec143615402a01f672b6e172b7b1875000 # v6
173+
uses: aws-actions/configure-aws-credentials@ec61189d14ec14c8efccab744f656cffd0e33f37 # v6
174174
with:
175175
role-to-assume: ${{ secrets.AWS_ROLE }}
176176
aws-region: ${{ inputs.aws-region }}
@@ -220,7 +220,7 @@ jobs:
220220
--metadata-file "./${{ matrix.img.image }}-${{ matrix.img.version }}-${{ steps.normalize-platform.outputs.platform }}-metadata.json" \
221221
--context ${{ inputs.context }}
222222
- name: Upload Metadata
223-
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7
223+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
224224
with:
225225
name: "${{ matrix.img.image }}-${{ matrix.img.version }}-${{ steps.normalize-platform.outputs.platform }}-metadata"
226226
path: "./${{ matrix.img.image }}-${{ matrix.img.version }}-${{ steps.normalize-platform.outputs.platform }}-metadata.json"
@@ -289,7 +289,7 @@ jobs:
289289

290290
- name: Configure AWS Credentials
291291
if: ${{ inputs.push && steps.filter-steps.outputs.ecr == 'true' }}
292-
uses: aws-actions/configure-aws-credentials@a89a83ec143615402a01f672b6e172b7b1875000 # v6
292+
uses: aws-actions/configure-aws-credentials@ec61189d14ec14c8efccab744f656cffd0e33f37 # v6
293293
with:
294294
role-to-assume: ${{ secrets.AWS_ROLE }}
295295
aws-region: ${{ inputs.aws-region }}

.github/workflows/bakery-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ jobs:
144144

145145
- name: Configure AWS Credentials
146146
if: ${{ inputs.push && steps.filter-steps.outputs.ecr == 'true' }}
147-
uses: aws-actions/configure-aws-credentials@a89a83ec143615402a01f672b6e172b7b1875000 # v6
147+
uses: aws-actions/configure-aws-credentials@ec61189d14ec14c8efccab744f656cffd0e33f37 # v6
148148
with:
149149
role-to-assume: ${{ secrets.AWS_ROLE }}
150150
aws-region: ${{ inputs.aws-region }}

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
run: echo "${GITHUB_WORKSPACE}/tools" >> $GITHUB_PATH
7979

8080
- name: Setup uv
81-
uses: astral-sh/setup-uv@94527f2e458b27549849d47d273a16bec83a01e9 # v7
81+
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7
8282
with:
8383
python-version-file: "posit-bakery/pyproject.toml"
8484

@@ -106,7 +106,7 @@ jobs:
106106
107107
- name: Publish results
108108
if: always()
109-
uses: EnricoMi/publish-unit-test-result-action@2ceeed2b8f26e15b06c3846719f75354febd9e7b # v2
109+
uses: EnricoMi/publish-unit-test-result-action@c950f6fb443cb5af20a377fd0dfaa78838901040 # v2
110110
with:
111111
files: ./posit-bakery/results.xml
112112

@@ -198,7 +198,7 @@ jobs:
198198
fetch-tags: true
199199

200200
- name: Setup uv
201-
uses: astral-sh/setup-uv@94527f2e458b27549849d47d273a16bec83a01e9 # v7
201+
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7
202202
with:
203203
python-version-file: "posit-bakery/pyproject.toml"
204204

@@ -214,7 +214,7 @@ jobs:
214214
215215
- name: Upload snapshot artifacts
216216
if: github.event_name == 'pull_request'
217-
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7
217+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
218218
with:
219219
name: bakery-snapshot-pr${{ github.event.pull_request.number }}
220220
path: ./posit-bakery/dist

setup-bakery/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ runs:
1515
using: "composite"
1616
steps:
1717
- name: Setup uv
18-
uses: astral-sh/setup-uv@94527f2e458b27549849d47d273a16bec83a01e9 # v7
18+
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7
1919

2020
- name: Setup Python
2121
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6

0 commit comments

Comments
 (0)