Skip to content

Commit b6d33ba

Browse files
committed
chore: pin actions (#11360)
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
1 parent e3ef547 commit b6d33ba

File tree

4 files changed

+49
-49
lines changed

4 files changed

+49
-49
lines changed

.github/workflows/ci-build.yaml

+31-31
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ jobs:
2727
runs-on: ubuntu-latest
2828
steps:
2929
- name: Checkout code
30-
uses: actions/checkout@v3
30+
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
3131
- name: Setup Golang
32-
uses: actions/setup-go@v3
32+
uses: actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f # v3.3.1
3333
with:
3434
go-version: ${{ env.GOLANG_VERSION }}
3535
- name: Download all Go modules
@@ -45,13 +45,13 @@ jobs:
4545
runs-on: ubuntu-latest
4646
steps:
4747
- name: Checkout code
48-
uses: actions/checkout@v3
48+
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
4949
- name: Setup Golang
50-
uses: actions/setup-go@v3
50+
uses: actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f # v3.3.1
5151
with:
5252
go-version: ${{ env.GOLANG_VERSION }}
5353
- name: Restore go build cache
54-
uses: actions/cache@v3
54+
uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # v3.0.11
5555
with:
5656
path: ~/.cache/go-build
5757
key: ${{ runner.os }}-go-build-v1-${{ github.run_id }}
@@ -69,13 +69,13 @@ jobs:
6969
runs-on: ubuntu-latest
7070
steps:
7171
- name: Checkout code
72-
uses: actions/checkout@v3
72+
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
7373
- name: Setup Golang
74-
uses: actions/setup-go@v3
74+
uses: actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f # v3.3.1
7575
with:
7676
go-version: ${{ env.GOLANG_VERSION }}
7777
- name: Run golangci-lint
78-
uses: golangci/golangci-lint-action@v3
78+
uses: golangci/golangci-lint-action@0ad9a0988b3973e851ab0a07adf248ec2e100376 # v3.3.1
7979
with:
8080
version: v1.45.2
8181
args: --timeout 10m --exclude SA5011 --verbose
@@ -92,11 +92,11 @@ jobs:
9292
- name: Create checkout directory
9393
run: mkdir -p ~/go/src/github.com/argoproj
9494
- name: Checkout code
95-
uses: actions/checkout@v3
95+
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
9696
- name: Create symlink in GOPATH
9797
run: ln -s $(pwd) ~/go/src/github.com/argoproj/argo-cd
9898
- name: Setup Golang
99-
uses: actions/setup-go@v3
99+
uses: actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f # v3.3.1
100100
with:
101101
go-version: ${{ env.GOLANG_VERSION }}
102102
- name: Install required packages
@@ -116,7 +116,7 @@ jobs:
116116
run: |
117117
echo "/usr/local/bin" >> $GITHUB_PATH
118118
- name: Restore go build cache
119-
uses: actions/cache@v3
119+
uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # v3.0.11
120120
with:
121121
path: ~/.cache/go-build
122122
key: ${{ runner.os }}-go-build-v1-${{ github.run_id }}
@@ -133,12 +133,12 @@ jobs:
133133
- name: Run all unit tests
134134
run: make test-local
135135
- name: Generate code coverage artifacts
136-
uses: actions/upload-artifact@v3
136+
uses: actions/upload-artifact@83fd05a356d7e2593de66fc9913b3002723633cb # v3.1.1
137137
with:
138138
name: code-coverage
139139
path: coverage.out
140140
- name: Generate test results artifacts
141-
uses: actions/upload-artifact@v3
141+
uses: actions/upload-artifact@83fd05a356d7e2593de66fc9913b3002723633cb # v3.1.1
142142
with:
143143
name: test-results
144144
path: test-results/
@@ -155,11 +155,11 @@ jobs:
155155
- name: Create checkout directory
156156
run: mkdir -p ~/go/src/github.com/argoproj
157157
- name: Checkout code
158-
uses: actions/checkout@v3
158+
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
159159
- name: Create symlink in GOPATH
160160
run: ln -s $(pwd) ~/go/src/github.com/argoproj/argo-cd
161161
- name: Setup Golang
162-
uses: actions/setup-go@v3
162+
uses: actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f # v3.3.1
163163
with:
164164
go-version: ${{ env.GOLANG_VERSION }}
165165
- name: Install required packages
@@ -179,7 +179,7 @@ jobs:
179179
run: |
180180
echo "/usr/local/bin" >> $GITHUB_PATH
181181
- name: Restore go build cache
182-
uses: actions/cache@v3
182+
uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # v3.0.11
183183
with:
184184
path: ~/.cache/go-build
185185
key: ${{ runner.os }}-go-build-v1-${{ github.run_id }}
@@ -196,7 +196,7 @@ jobs:
196196
- name: Run all unit tests
197197
run: make test-race-local
198198
- name: Generate test results artifacts
199-
uses: actions/upload-artifact@v3
199+
uses: actions/upload-artifact@83fd05a356d7e2593de66fc9913b3002723633cb # v3.1.1
200200
with:
201201
name: race-results
202202
path: test-results/
@@ -206,9 +206,9 @@ jobs:
206206
runs-on: ubuntu-latest
207207
steps:
208208
- name: Checkout code
209-
uses: actions/checkout@v3
209+
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
210210
- name: Setup Golang
211-
uses: actions/setup-go@v3
211+
uses: actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f # v3.3.1
212212
with:
213213
go-version: ${{ env.GOLANG_VERSION }}
214214
- name: Create symlink in GOPATH
@@ -250,14 +250,14 @@ jobs:
250250
runs-on: ubuntu-latest
251251
steps:
252252
- name: Checkout code
253-
uses: actions/checkout@v3
253+
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
254254
- name: Setup NodeJS
255-
uses: actions/setup-node@v3
255+
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1
256256
with:
257257
node-version: '12.18.4'
258258
- name: Restore node dependency cache
259259
id: cache-dependencies
260-
uses: actions/cache@v3
260+
uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # v3.0.11
261261
with:
262262
path: ui/node_modules
263263
key: ${{ runner.os }}-node-dep-v2-${{ hashFiles('**/yarn.lock') }}
@@ -287,12 +287,12 @@ jobs:
287287
sonar_secret: ${{ secrets.SONAR_TOKEN }}
288288
steps:
289289
- name: Checkout code
290-
uses: actions/checkout@v3
290+
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
291291
with:
292292
fetch-depth: 0
293293
- name: Restore node dependency cache
294294
id: cache-dependencies
295-
uses: actions/cache@v3
295+
uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # v3.0.11
296296
with:
297297
path: ui/node_modules
298298
key: ${{ runner.os }}-node-dep-v2-${{ hashFiles('**/yarn.lock') }}
@@ -303,16 +303,16 @@ jobs:
303303
run: |
304304
mkdir -p test-results
305305
- name: Get code coverage artifiact
306-
uses: actions/download-artifact@v3
306+
uses: actions/download-artifact@9782bd6a9848b53b110e712e20e42d89988822b7 # v3.0.1
307307
with:
308308
name: code-coverage
309309
- name: Get test result artifact
310-
uses: actions/download-artifact@v3
310+
uses: actions/download-artifact@9782bd6a9848b53b110e712e20e42d89988822b7 # v3.0.1
311311
with:
312312
name: test-results
313313
path: test-results
314314
- name: Upload code coverage information to codecov.io
315-
uses: codecov/codecov-action@v3
315+
uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 # v3.1.1
316316
with:
317317
file: coverage.out
318318
- name: Perform static code analysis using SonarCloud
@@ -365,9 +365,9 @@ jobs:
365365
GITLAB_TOKEN: ${{ secrets.E2E_TEST_GITLAB_TOKEN }}
366366
steps:
367367
- name: Checkout code
368-
uses: actions/checkout@v3
368+
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
369369
- name: Setup Golang
370-
uses: actions/setup-go@v3
370+
uses: actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f # v3.3.1
371371
with:
372372
go-version: ${{ env.GOLANG_VERSION }}
373373
- name: GH actions workaround - Kill XSP4 process
@@ -385,7 +385,7 @@ jobs:
385385
sudo chown runner $HOME/.kube/config
386386
kubectl version
387387
- name: Restore go build cache
388-
uses: actions/cache@v3
388+
uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # v3.0.11
389389
with:
390390
path: ~/.cache/go-build
391391
key: ${{ runner.os }}-go-build-v1-${{ github.run_id }}
@@ -441,7 +441,7 @@ jobs:
441441
set -x
442442
make test-e2e-local
443443
- name: Upload e2e-server logs
444-
uses: actions/upload-artifact@v3
444+
uses: actions/upload-artifact@83fd05a356d7e2593de66fc9913b3002723633cb # v3.1.1
445445
with:
446446
name: e2e-server-k8s${{ matrix.k3s-version }}.log
447447
path: /tmp/e2e-server.log

.github/workflows/codeql.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,19 @@ jobs:
2929

3030
steps:
3131
- name: Checkout repository
32-
uses: actions/checkout@v3
32+
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
3333

3434
# Initializes the CodeQL tools for scanning.
3535
- name: Initialize CodeQL
36-
uses: github/codeql-action/init@v1
36+
uses: github/codeql-action/init@8aff97f12c99086bdb92ff62ae06dbbcdf07941b # v2.1.33
3737
# Override language selection by uncommenting this and choosing your languages
3838
# with:
3939
# languages: go, javascript, csharp, python, cpp, java
4040

4141
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
4242
# If this step fails, then you should remove it and run the build manually (see below)
4343
- name: Autobuild
44-
uses: github/codeql-action/autobuild@v1
44+
uses: github/codeql-action/autobuild@8aff97f12c99086bdb92ff62ae06dbbcdf07941b # v2.1.33
4545

4646
# ℹ️ Command-line programs to run using the OS shell.
4747
# 📚 https://git.io/JvXDl
@@ -55,4 +55,4 @@ jobs:
5555
# make release
5656

5757
- name: Perform CodeQL Analysis
58-
uses: github/codeql-action/analyze@v1
58+
uses: github/codeql-action/analyze@8aff97f12c99086bdb92ff62ae06dbbcdf07941b # v2.1.33

.github/workflows/image.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ jobs:
2828
env:
2929
GOPATH: /home/runner/work/argo-cd/argo-cd
3030
steps:
31-
- uses: actions/setup-go@v3
31+
- uses: actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f # v3.3.1
3232
with:
3333
go-version: ${{ env.GOLANG_VERSION }}
34-
- uses: actions/checkout@master
34+
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
3535
with:
3636
path: src/github.com/argoproj/argo-cd
3737

@@ -52,8 +52,8 @@ jobs:
5252
DOCKER_TOKEN: ${{ secrets.RELEASE_QUAY_TOKEN }}
5353
5454
# build
55-
- uses: docker/setup-qemu-action@v2
56-
- uses: docker/setup-buildx-action@v2
55+
- uses: docker/setup-qemu-action@e81a89b1732b9c48d79cd809d8d81d79c4647a18 # v2.1.0
56+
- uses: docker/setup-buildx-action@8c0edbc76e98fa90f69d9a2c020dcb50019dc325 # v2.2.1
5757

5858
- name: Setup cache for argocd-ui docker layer
5959
uses: actions/cache@v3
@@ -117,7 +117,7 @@ jobs:
117117

118118
# sign container images
119119
- name: Install cosign
120-
uses: sigstore/cosign-installer@main
120+
uses: sigstore/cosign-installer@9becc617647dfa20ae7b1151972e9b3a2c338a2b # v2.8.1
121121
with:
122122
cosign-release: 'v1.13.0'
123123

.github/workflows/release.yaml

+9-9
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
GIT_EMAIL: argoproj@gmail.com
4444
steps:
4545
- name: Checkout code
46-
uses: actions/checkout@v3
46+
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
4747
with:
4848
fetch-depth: 0
4949
token: ${{ secrets.GITHUB_TOKEN }}
@@ -147,7 +147,7 @@ jobs:
147147
echo "RELEASE_NOTES=${RELEASE_NOTES}" >> $GITHUB_ENV
148148
149149
- name: Setup Golang
150-
uses: actions/setup-go@v3
150+
uses: actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f # v3.3.1
151151
with:
152152
go-version: ${{ env.GOLANG_VERSION }}
153153

@@ -200,8 +200,8 @@ jobs:
200200
docker login --username "${DOCKER_USERNAME}" --password-stdin <<< "${DOCKER_TOKEN}"
201201
if: ${{ env.DRY_RUN != 'true' }}
202202

203-
- uses: docker/setup-qemu-action@v2
204-
- uses: docker/setup-buildx-action@v2
203+
- uses: docker/setup-qemu-action@e81a89b1732b9c48d79cd809d8d81d79c4647a18 # v2.1.0
204+
- uses: docker/setup-buildx-action@8c0edbc76e98fa90f69d9a2c020dcb50019dc325 # v2.2.1
205205
- name: Build and push Docker image for release
206206
run: |
207207
set -ue
@@ -215,7 +215,7 @@ jobs:
215215
if: ${{ env.DRY_RUN != 'true' }}
216216

217217
- name: Install cosign
218-
uses: sigstore/cosign-installer@main
218+
uses: sigstore/cosign-installer@9becc617647dfa20ae7b1151972e9b3a2c338a2b # v2.8.1
219219
with:
220220
cosign-release: 'v1.13.0'
221221

@@ -232,7 +232,7 @@ jobs:
232232

233233
- name: Read release notes file
234234
id: release-notes
235-
uses: juliangruber/read-file-action@v1
235+
uses: juliangruber/read-file-action@02bbba9876a8f870efd4ad64e3b9088d3fb94d4b # v1.1.6
236236
with:
237237
path: ${{ env.RELEASE_NOTES }}
238238

@@ -243,7 +243,7 @@ jobs:
243243
git push origin ${RELEASE_TAG}
244244
245245
- name: Dry run GitHub release
246-
uses: actions/create-release@v1
246+
uses: actions/create-release@0cb9c9b65d5d1901c1f53e5e66eaf4afd303e70e # v1.1.4
247247
env:
248248
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
249249
id: create_release
@@ -295,7 +295,7 @@ jobs:
295295
if: ${{ env.DRY_RUN != 'true' }}
296296

297297
- name: Create GitHub release
298-
uses: softprops/action-gh-release@v1
298+
uses: softprops/action-gh-release@1e07f4398721186383de40550babbdf2b84acfc5 # v0.1.14
299299
env:
300300
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
301301
with:
@@ -313,7 +313,7 @@ jobs:
313313
- name: Update homebrew formula
314314
env:
315315
HOMEBREW_TOKEN: ${{ secrets.RELEASE_HOMEBREW_TOKEN }}
316-
uses: dawidd6/action-homebrew-bump-formula@v3
316+
uses: dawidd6/action-homebrew-bump-formula@02e79d9da43d79efa846d73695b6052cbbdbf48a # v3.8.3
317317
with:
318318
token: ${{env.HOMEBREW_TOKEN}}
319319
formula: argocd

0 commit comments

Comments
 (0)