Skip to content

Commit 0be90cb

Browse files
committed
pin GH Actions to commit sha
1 parent 17cb2f3 commit 0be90cb

5 files changed

Lines changed: 23 additions & 23 deletions

File tree

.github/workflows/ci-on-pull-request.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
arch: [ amd64, arm64 ]
1818
steps:
1919
- name: Checkout code
20-
uses: actions/checkout@v4
20+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
2121

2222
- name: Fix the not-a-git-repository issue
2323
run: |
@@ -32,14 +32,14 @@ jobs:
3232
run: scripts/download
3333

3434
- name: Set up QEMU
35-
uses: docker/setup-qemu-action@v3
35+
uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3
3636

3737
- name: Set up Docker Buildx
38-
uses: docker/setup-buildx-action@v3
38+
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
3939

4040
- name: Build Docker image
4141
id: build
42-
uses: docker/build-push-action@v5
42+
uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5
4343
with:
4444
context: .
4545
file: package/Dockerfile

.github/workflows/fossa.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ jobs:
1515
id-token: write # needed for the Vault authentication
1616
steps:
1717
- name: Checkout
18-
uses: actions/checkout@v4
18+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
1919

2020
- name: Read FOSSA token
21-
uses: rancher-eio/read-vault-secrets@main
21+
uses: rancher-eio/read-vault-secrets@0da85151ad1f19ed7986c41587e45aac1ace74b6 # v3
2222
with:
2323
secrets: |
2424
secret/data/github/org/rancher/fossa/push token | FOSSA_API_KEY_PUSH_ONLY
2525
2626
- name: FOSSA scan
27-
uses: fossas/fossa-action@main
27+
uses: fossas/fossa-action@c414b9ad82eaad041e47a7cf62a4f02411f427a0 # v1.8.0
2828
with:
2929
api-key: ${{ env.FOSSA_API_KEY_PUSH_ONLY }}
3030
run-tests: false

.github/workflows/release.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
os: linux
2525
steps:
2626
- name: Checkout code
27-
uses: actions/checkout@v4
27+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
2828

2929
- name: Fix the not-a-git-repository issue
3030
run: |
@@ -40,7 +40,7 @@ jobs:
4040
run: scripts/download
4141

4242
- name: Load secrets from Vault
43-
uses: rancher-eio/read-vault-secrets@main
43+
uses: rancher-eio/read-vault-secrets@0da85151ad1f19ed7986c41587e45aac1ace74b6 # v3
4444
with:
4545
secrets: |
4646
secret/data/github/repo/${{ github.repository }}/dockerhub/rancher/credentials username | DOCKER_USERNAME ;
@@ -54,7 +54,7 @@ jobs:
5454
secret/data/github/repo/${{ github.repository }}/rancher-prime-stg-registry/credentials password | PRIME_STAGING_REGISTRY_PASSWORD ;
5555
5656
- name: Publish Image - Docker
57-
uses: rancher/ecm-distro-tools/actions/publish-image@master
57+
uses: rancher/ecm-distro-tools/actions/publish-image@575bb831c67edd950bfedb59d41dd127bd0005d6 # v0.65.2
5858
env:
5959
GOARCH: ${{ matrix.arch }}
6060
GOOS: ${{ matrix.os }}
@@ -70,7 +70,7 @@ jobs:
7070
push-to-prime: false
7171

7272
- name: Publish Image - Staging
73-
uses: rancher/ecm-distro-tools/actions/publish-image@master
73+
uses: rancher/ecm-distro-tools/actions/publish-image@575bb831c67edd950bfedb59d41dd127bd0005d6 # v0.65.2
7474
env:
7575
GOARCH: ${{ matrix.arch }}
7676
GOOS: ${{ matrix.os }}
@@ -89,7 +89,7 @@ jobs:
8989
prime-password: ${{ env.PRIME_STAGING_REGISTRY_PASSWORD }}
9090

9191
- name: Publish Image - Prime
92-
uses: rancher/ecm-distro-tools/actions/publish-image@master
92+
uses: rancher/ecm-distro-tools/actions/publish-image@575bb831c67edd950bfedb59d41dd127bd0005d6 # v0.65.2
9393
if: ${{ !contains(github.ref_name, '-rc') }}
9494
env:
9595
GOARCH: ${{ matrix.arch }}
@@ -113,7 +113,7 @@ jobs:
113113
needs: [ build-linux ]
114114
steps:
115115
- name: Checkout code
116-
uses: actions/checkout@v4
116+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
117117

118118
- name: Set environment variables
119119
run: |
@@ -124,7 +124,7 @@ jobs:
124124
echo "GIT_TAG=$(echo "${{ github.ref_name }}" | sed -e 's/+/-/g')" >> "$GITHUB_ENV"
125125
126126
- name: Load secrets from Vault
127-
uses: rancher-eio/read-vault-secrets@main
127+
uses: rancher-eio/read-vault-secrets@0da85151ad1f19ed7986c41587e45aac1ace74b6 # v3
128128
with:
129129
secrets: |
130130
secret/data/github/repo/${{ github.repository }}/dockerhub/rancher/credentials username | DOCKER_USERNAME ;
@@ -138,7 +138,7 @@ jobs:
138138
secret/data/github/repo/${{ github.repository }}/rancher-prime-stg-registry/credentials password | PRIME_STAGING_REGISTRY_PASSWORD ;
139139
140140
- name: Publish Manifest - Docker
141-
uses: rancher/ecm-distro-tools/actions/publish-image@master
141+
uses: rancher/ecm-distro-tools/actions/publish-image@575bb831c67edd950bfedb59d41dd127bd0005d6 # v0.65.2
142142
with:
143143
image: ${{ env.IMAGE }}
144144
tag: ${{ env.GIT_TAG }}
@@ -153,7 +153,7 @@ jobs:
153153
run: docker buildx imagetools inspect ${{ env.REPO }}/${{ env.IMAGE }}:${{ env.GIT_TAG }}
154154

155155
- name: Publish Manifest - Staging
156-
uses: rancher/ecm-distro-tools/actions/publish-image@master
156+
uses: rancher/ecm-distro-tools/actions/publish-image@575bb831c67edd950bfedb59d41dd127bd0005d6 # v0.65.2
157157
with:
158158
image: ${{ env.IMAGE }}
159159
tag: ${{ env.GIT_TAG }}
@@ -170,7 +170,7 @@ jobs:
170170
run: docker buildx imagetools inspect ${{ env.PRIME_STAGING_REGISTRY }}/${{ env.REPO }}/${{ env.IMAGE }}:${{ env.GIT_TAG }}
171171

172172
- name: Publish Image - Prime
173-
uses: rancher/ecm-distro-tools/actions/publish-image@master
173+
uses: rancher/ecm-distro-tools/actions/publish-image@575bb831c67edd950bfedb59d41dd127bd0005d6 # v0.65.2
174174
if: ${{ !contains(github.ref_name, '-rc') }}
175175
with:
176176
image: "system-agent-installer-k3s"

.github/workflows/updatecli.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ jobs:
1818
if: github.ref == 'refs/heads/main'
1919
steps:
2020
- name: Checkout
21-
uses: actions/checkout@v3
21+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
2222

2323
- name: Install Go
24-
uses: actions/setup-go@v4
24+
uses: actions/setup-go@7b8cf10d4e4a01d4992d18a89f4d7dc5a3e6d6f4 # v4
2525
with:
2626
go-version: 'stable'
2727

2828
- name: Install Updatecli
29-
uses: updatecli/updatecli-action@v2
29+
uses: updatecli/updatecli-action@4b17f4ea784de29f71f85f9bc4955402ba1ae53c # v2.100.0
3030

3131
- name: Delete leftover UpdateCLI branches
3232
run: |

.github/workflows/watch-k3s-releases.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Checkout code
18-
uses: actions/checkout@v4
18+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
1919
with:
2020
fetch-depth: 0 # Fetch all history to get all tags
2121

@@ -74,15 +74,15 @@ jobs:
7474
7575
- name: Read Vault secrets
7676
if: steps.process-releases.outputs.has_releases == 'true'
77-
uses: rancher-eio/read-vault-secrets@main
77+
uses: rancher-eio/read-vault-secrets@0da85151ad1f19ed7986c41587e45aac1ace74b6 # v3
7878
with:
7979
secrets: |
8080
secret/data/github/repo/${{ github.repository }}/github/app-credentials appId | APP_ID ;
8181
secret/data/github/repo/${{ github.repository }}/github/app-credentials privateKey | PRIVATE_KEY ;
8282
8383
- name: Generate short-lived github app token
8484
if: steps.process-releases.outputs.has_releases == 'true'
85-
uses: actions/create-github-app-token@v1
85+
uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1
8686
id: app-token
8787
with:
8888
app-id: ${{ env.APP_ID }}

0 commit comments

Comments
 (0)