Skip to content

Commit 1437c67

Browse files
Update github actions to use SHA versions (apple#763)
Related to apple/container#1649. This PR updates the GitHub workflows to ensure all imported actions are referenced by commit SHA. Signed-off-by: Kathryn Baldauf <k_baldauf@apple.com>
1 parent 9275f36 commit 1437c67

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/build-test-images.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,16 +61,16 @@ jobs:
6161
- name: Checkout repository
6262
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
6363
- name: Login to GitHub Container Registry
64-
uses: docker/login-action@v3
64+
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
6565
with:
6666
registry: ghcr.io
6767
username: ${{ github.actor }}
6868
password: ${{ secrets.GITHUB_TOKEN }}
6969
- name: Set up Docker Buildx
7070
if: ${{ inputs.useBuildx }}
71-
uses: docker/setup-buildx-action@v3
71+
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
7272
- name: Build dockerfile and push image
73-
uses: docker/build-push-action@v6
73+
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6
7474
with:
7575
push: ${{ inputs.publish }}
7676
context: Tests/TestImages/${{ inputs.image }}

.github/workflows/containerization-build-template.yml

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

114114
steps:
115115
- name: Setup Pages
116-
uses: actions/configure-pages@v5
116+
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5
117117

118118
- name: Download a single artifact
119119
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7

.github/workflows/docs-release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ jobs:
4343
steps:
4444
- name: Deploy to GitHub Pages
4545
id: deployment
46-
uses: actions/deploy-pages@v4
46+
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
steps:
3535
- name: Deploy to GitHub Pages
3636
id: deployment
37-
uses: actions/deploy-pages@v4
37+
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4
3838

3939
release:
4040
if: startsWith(github.ref, 'refs/tags/')
@@ -47,7 +47,7 @@ jobs:
4747
packages: read
4848
steps:
4949
- name: Create release
50-
uses: softprops/action-gh-release@v2
50+
uses: softprops/action-gh-release@3bb12739c298aeb8a4eeaf626c5b8d85266b0e65 # v2
5151
with:
5252
token: ${{ github.token }}
5353
name: ${{ github.ref_name }}-prerelease

0 commit comments

Comments
 (0)