Skip to content

Commit 8ea9876

Browse files
authored
Merge pull request #31 from nationalarchives/pinact/pin-actions
Pin third-party actions to commit SHAs
2 parents 83d86ec + 308d061 commit 8ea9876

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/docker-ghcr.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,29 +14,29 @@ jobs:
1414

1515
steps:
1616
- name: Checkout
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
1818

1919
- name: Set up Docker Buildx
20-
uses: docker/setup-buildx-action@v3
20+
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
2121

2222
- name: Log in to GHCR
23-
uses: docker/login-action@v3
23+
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
2424
with:
2525
registry: ghcr.io
2626
username: ${{ github.actor }}
2727
password: ${{ secrets.GITHUB_TOKEN }}
2828

2929
- name: Extract metadata (tags, labels)
3030
id: meta
31-
uses: docker/metadata-action@v5
31+
uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5.10.0
3232
with:
3333
images: ghcr.io/${{ github.repository }}
3434
tags: |
3535
type=raw,value=latest
3636
type=sha,format=short
3737
3838
- name: Build and push
39-
uses: docker/build-push-action@v6
39+
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
4040
with:
4141
context: .
4242
push: true

0 commit comments

Comments
 (0)