Skip to content

Commit 305e896

Browse files
authored
Tag published builder images with commit SHA (#269)
When the action is referenced by SHA, the version step extracts the SHA from github.action_path and uses it as the Docker image tag. Without a corresponding SHA-tagged image, the pull fails. By publishing each image with the commit SHA as an additional tag, SHA-pinned references resolve to a valid image.
1 parent cbf7a23 commit 305e896

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,5 @@ jobs:
5858
--${{ matrix.architecture }} \
5959
--target /data \
6060
--cosign \
61+
--additional-tag ${{ github.sha }} \
6162
--generic $GIT_TAG_NAME

0 commit comments

Comments
 (0)