Skip to content

Commit 5a7623b

Browse files
committed
Use SHAs for externals; avoid persisting credentials.
1 parent a251aba commit 5a7623b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
- name: Checkout Code
4040
uses: actions/checkout@v4
4141
with:
42+
persist-credentials: false
4243
ref: ${{ inputs.ref || '' }}
4344

4445
- name: Gather image info
@@ -55,26 +56,26 @@ jobs:
5556
${{ runner.os }}-buildx-
5657
5758
- name: Set up Docker Buildx
58-
uses: docker/setup-buildx-action@v3
59+
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 #v3.11.1
5960

6061
- name: Log in to the GitHub Container Registry
61-
uses: docker/login-action@v3
62+
uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 #v3.5.0
6263
with:
6364
registry: ghcr.io
6465
username: ${{ github.repository_owner }}
6566
password: ${{ secrets.GITHUB_TOKEN }}
6667

6768
- name: Setup Image Metadata
6869
id: meta
69-
uses: docker/metadata-action@v5
70+
uses: docker/metadata-action@c1e51972afc2121e065aed6d45c65596fe445f3f #v5.8.0
7071
with:
7172
images: |
7273
ghcr.io/${{ steps.info.outputs.repo-owner }}/vc-data-model-2.0-test-suite
7374
tags: |
7475
type=raw,value=${{ inputs.tag || github.event.release.tag_name }}
7576
7677
- name: Build and Push Image to ghcr.io
77-
uses: docker/build-push-action@v6
78+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 #v6.18.0
7879
with:
7980
push: true
8081
context: .

0 commit comments

Comments
 (0)