Skip to content

Commit 4243498

Browse files
committed
ci: pin GH Actions to commit sha
Signed-off-by: Zespre Chang <zespre.chang@suse.com>
1 parent 4b961e2 commit 4243498

File tree

4 files changed

+18
-18
lines changed

4 files changed

+18
-18
lines changed

.github/workflows/codeql.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@ jobs:
4848

4949
steps:
5050
- name: Checkout repository
51-
uses: actions/checkout@v4
51+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
5252

53-
- uses: actions/setup-go@v5
53+
- uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5
5454
with:
5555
go-version: '1.21'
5656

5757
# Initializes the CodeQL tools for scanning.
5858
- name: Initialize CodeQL
59-
uses: github/codeql-action/init@v3
59+
uses: github/codeql-action/init@ebcb5b36ded6beda4ceefea6a8bc4cc885255bb3 # v3
6060
with:
6161
languages: ${{ matrix.language }}
6262
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -70,7 +70,7 @@ jobs:
7070
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
7171
# If this step fails, then you should remove it and run the build manually (see below)
7272
- name: Autobuild
73-
uses: github/codeql-action/autobuild@v3
73+
uses: github/codeql-action/autobuild@ebcb5b36ded6beda4ceefea6a8bc4cc885255bb3 # v3
7474

7575
# ℹ️ Command-line programs to run using the OS shell.
7676
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -83,6 +83,6 @@ jobs:
8383
# ./location_of_script_within_repo/buildscript.sh
8484

8585
- name: Perform CodeQL Analysis
86-
uses: github/codeql-action/analyze@v3
86+
uses: github/codeql-action/analyze@ebcb5b36ded6beda4ceefea6a8bc4cc885255bb3 # v3
8787
with:
8888
category: "/language:${{matrix.language}}"

.github/workflows/fossa.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ jobs:
2020
# The FOSSA token is shared between all repos in Harvester's GH org. It can
2121
# be used directly and there is no need to request specific access to EIO.
2222
- name: Read FOSSA token
23-
uses: rancher-eio/read-vault-secrets@main
23+
uses: rancher-eio/read-vault-secrets@0da85151ad1f19ed7986c41587e45aac1ace74b6 # v3
2424
with:
2525
secrets: |
2626
secret/data/github/org/harvester/fossa/credentials token | FOSSA_API_KEY_PUSH_ONLY
2727
2828
- name: FOSSA scan
29-
uses: fossas/fossa-action@main
29+
uses: fossas/fossa-action@c414b9ad82eaad041e47a7cf62a4f02411f427a0 # v1.8.0
3030
with:
3131
api-key: ${{ env.FOSSA_API_KEY_PUSH_ONLY }}
3232
# Only runs the scan and do not provide/returns any results back to the

.github/workflows/scan.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
runs-on: ubuntu-24.04
1313
steps:
1414
- name: Checkout code
15-
uses: actions/checkout@v4
15+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
1616

1717
- name: Run Trivy vulnerability scanner in repo mode
18-
uses: aquasecurity/trivy-action@master
18+
uses: aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1 # v0.35.0
1919
with:
2020
scan-type: 'fs'
2121
ignore-unfixed: true
@@ -24,6 +24,6 @@ jobs:
2424
severity: 'CRITICAL'
2525

2626
- name: Upload Trivy scan results to GitHub Security tab
27-
uses: github/codeql-action/upload-sarif@v3
27+
uses: github/codeql-action/upload-sarif@ebcb5b36ded6beda4ceefea6a8bc4cc885255bb3 # v3
2828
with:
2929
sarif_file: 'trivy-results.sarif'

.github/workflows/template-build.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,34 +22,34 @@ jobs:
2222
id-token: write
2323
steps:
2424
- name: Checkout code
25-
uses: actions/checkout@v4
25+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
2626

2727
- name: Set up QEMU
28-
uses: docker/setup-qemu-action@v3
28+
uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3
2929

3030
- name: Set up Docker Buildx
31-
uses: docker/setup-buildx-action@v3
31+
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
3232

3333
- name: Run dapper
3434
run: make ci
3535

3636
- name: Read some Secrets
37-
uses: rancher-eio/read-vault-secrets@main
37+
uses: rancher-eio/read-vault-secrets@0da85151ad1f19ed7986c41587e45aac1ace74b6 # v3
3838
if: ${{ inputs.push == true }}
3939
with:
4040
secrets: |
4141
secret/data/github/repo/${{ github.repository }}/dockerhub/rancher/credentials username | DOCKER_USERNAME ;
4242
secret/data/github/repo/${{ github.repository }}/dockerhub/rancher/credentials password | DOCKER_PASSWORD
4343
4444
- name: Login to Docker Hub
45-
uses: docker/login-action@v3
45+
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
4646
if: ${{ inputs.push == true }}
4747
with:
4848
username: ${{ env.DOCKER_USERNAME }}
4949
password: ${{ env.DOCKER_PASSWORD }}
5050

5151
- name: Docker Build (Controller)
52-
uses: docker/build-push-action@v5
52+
uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5
5353
with:
5454
provenance: false
5555
context: .
@@ -59,7 +59,7 @@ jobs:
5959
tags: ${{ env.repo }}/${{ env.controllerImageName }}:${{ inputs.release-tag-name }}
6060

6161
- name: Docker Build (Agent)
62-
uses: docker/build-push-action@v5
62+
uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5
6363
with:
6464
provenance: false
6565
context: .
@@ -69,7 +69,7 @@ jobs:
6969
tags: ${{ env.repo }}/${{ env.agentImageName }}:${{ inputs.release-tag-name }}
7070

7171
- name: Docker Build (Webhook)
72-
uses: docker/build-push-action@v5
72+
uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5
7373
with:
7474
provenance: false
7575
context: .

0 commit comments

Comments
 (0)