Skip to content

Commit c120407

Browse files
chore: pin action versions in workflow files (#364)
Co-authored-by: Noam Cattan <ndcattan@gmail.com>
1 parent e86fa11 commit c120407

4 files changed

Lines changed: 14 additions & 14 deletions

File tree

.github/workflows/cd-image-canary-release.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ jobs:
2020
push:
2121
runs-on: ubuntu-latest
2222
steps:
23-
- uses: actions/checkout@v2
23+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
2424
- name: Set up Docker Buildx
25-
uses: docker/setup-buildx-action@v2
25+
uses: docker/setup-buildx-action@885d1462b80bc1c1c7f0b00334ad271f09369c55 # v2
2626
- name: Set up QEMU
27-
uses: docker/setup-qemu-action@v2
27+
uses: docker/setup-qemu-action@2b82ce82d56a2a04d2637cd93a637ae1b359c0a7 # v2
2828
- name: Login to DockerHub
29-
uses: docker/login-action@v1
29+
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
3030
with:
3131
username: ${{ secrets.DOCKERHUB_USERNAME }}
3232
password: ${{ secrets.DOCKERHUB_TOKEN }}
@@ -38,7 +38,7 @@ jobs:
3838
echo "version=$(curl -s https://release.ariga.io/atlas/atlas-linux-amd64-latest.version)" >> $GITHUB_OUTPUT
3939
- name: Docker meta
4040
id: meta
41-
uses: docker/metadata-action@v4
41+
uses: docker/metadata-action@818d4b7b91585d195f67373fd9cb0332e31a7175 # v4
4242
with:
4343
images: ${{ secrets.DOCKERHUB_USERNAME }}/atlas-operator
4444
tags: |
@@ -54,7 +54,7 @@ jobs:
5454
org.opencontainers.image.vendor=Ariga
5555
org.opencontainers.image.source=https://github.com/ariga/atlas-operator/blob/master/Dockerfile
5656
- name: Build and push
57-
uses: docker/build-push-action@v4
57+
uses: docker/build-push-action@0a97817b6ade9f46837855d676c4cca3a2471fc9 # v4
5858
with:
5959
context: .
6060
build-args: |
@@ -74,6 +74,6 @@ jobs:
7474
output: 'trivy-results.sarif'
7575
severity: 'CRITICAL,HIGH,MEDIUM'
7676
- name: Upload Trivy scan results to GitHub Security tab
77-
uses: github/codeql-action/upload-sarif@v2
77+
uses: github/codeql-action/upload-sarif@03e4368ac7daa2bd82b3e85262f3bf87ee112f57 # v3
7878
with:
7979
sarif_file: 'trivy-results.sarif'

.github/workflows/cd-operator-release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
- name: Set up QEMU
6868
uses: docker/setup-qemu-action@2b82ce82d56a2a04d2637cd93a637ae1b359c0a7 # v2
6969
- name: Login to DockerHub
70-
uses: docker/login-action@dd4fa0671be5250ee6f50aedf4cb05514abda2c7 # v1
70+
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
7171
with:
7272
username: ${{ secrets.DOCKERHUB_USERNAME }}
7373
password: ${{ secrets.DOCKERHUB_TOKEN }}
@@ -112,7 +112,7 @@ jobs:
112112
output: 'trivy-results.sarif'
113113
severity: 'CRITICAL,HIGH,MEDIUM'
114114
- name: Upload Trivy scan results to GitHub Security tab
115-
uses: github/codeql-action/upload-sarif@b8d3b6e8af63cde30bdc382c0bc28114f4346c88 # v2
115+
uses: github/codeql-action/upload-sarif@03e4368ac7daa2bd82b3e85262f3bf87ee112f57 # v3
116116
with:
117117
sarif_file: 'trivy-results.sarif'
118118
release:

.github/workflows/codeql.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ jobs:
6969
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
7070
steps:
7171
- name: Checkout repository
72-
uses: actions/checkout@v4
72+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
7373

7474
# Initializes the CodeQL tools for scanning.
7575
- name: Initialize CodeQL
76-
uses: github/codeql-action/init@v3
76+
uses: github/codeql-action/init@03e4368ac7daa2bd82b3e85262f3bf87ee112f57 # v3
7777
with:
7878
languages: ${{ matrix.language }}
7979
build-mode: ${{ matrix.build-mode }}
@@ -101,6 +101,6 @@ jobs:
101101
exit 1
102102
103103
- name: Perform CodeQL Analysis
104-
uses: github/codeql-action/analyze@v3
104+
uses: github/codeql-action/analyze@03e4368ac7daa2bd82b3e85262f3bf87ee112f57 # v3
105105
with:
106106
category: "/language:${{matrix.language}}"

.github/workflows/trivy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
runs-on: ubuntu-latest
3030
steps:
3131
- name: Checkout code
32-
uses: actions/checkout@v3
32+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
3333
- name: Build an image from Dockerfile
3434
run: |
3535
docker build -t ${{ secrets.DOCKERHUB_USERNAME }}/atlas-operator:${{ github.sha }} .
@@ -42,6 +42,6 @@ jobs:
4242
output: 'trivy-results.sarif'
4343
severity: 'CRITICAL,HIGH,MEDIUM'
4444
- name: Upload Trivy scan results to GitHub Security tab
45-
uses: github/codeql-action/upload-sarif@v2
45+
uses: github/codeql-action/upload-sarif@03e4368ac7daa2bd82b3e85262f3bf87ee112f57 # v3
4646
with:
4747
sarif_file: 'trivy-results.sarif'

0 commit comments

Comments
 (0)