Skip to content

Commit 71cd8b6

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 75cb10e commit 71cd8b6

File tree

4 files changed

+49
-52
lines changed

4 files changed

+49
-52
lines changed

.github/workflows/ci-build.yaml

+31-34
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@ on:
1212

1313
env:
1414
# Golang version to use across CI steps
15-
GOLANG_VERSION: '1.17'
16-
17-
permissions:
18-
contents: read
15+
GOLANG_VERSION: '1.18'
1916

2017
concurrency:
2118
group: ${{ github.workflow }}-${{ github.ref }}
@@ -27,9 +24,9 @@ jobs:
2724
runs-on: ubuntu-latest
2825
steps:
2926
- name: Checkout code
30-
uses: actions/checkout@v3
27+
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
3128
- name: Setup Golang
32-
uses: actions/setup-go@v3
29+
uses: actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f # v3.3.1
3330
with:
3431
go-version: ${{ env.GOLANG_VERSION }}
3532
- name: Download all Go modules
@@ -45,13 +42,13 @@ jobs:
4542
runs-on: ubuntu-latest
4643
steps:
4744
- name: Checkout code
48-
uses: actions/checkout@v3
45+
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
4946
- name: Setup Golang
50-
uses: actions/setup-go@v3
47+
uses: actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f # v3.3.1
5148
with:
5249
go-version: ${{ env.GOLANG_VERSION }}
5350
- name: Restore go build cache
54-
uses: actions/cache@v3
51+
uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # v3.0.11
5552
with:
5653
path: ~/.cache/go-build
5754
key: ${{ runner.os }}-go-build-v1-${{ github.run_id }}
@@ -69,9 +66,9 @@ jobs:
6966
runs-on: ubuntu-latest
7067
steps:
7168
- name: Checkout code
72-
uses: actions/checkout@v3
69+
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
7370
- name: Run golangci-lint
74-
uses: golangci/golangci-lint-action@v3
71+
uses: golangci/golangci-lint-action@0ad9a0988b3973e851ab0a07adf248ec2e100376 # v3.3.1
7572
with:
7673
version: v1.46.2
7774
args: --timeout 10m --exclude SA5011 --verbose
@@ -85,11 +82,11 @@ jobs:
8582
- name: Create checkout directory
8683
run: mkdir -p ~/go/src/github.com/argoproj
8784
- name: Checkout code
88-
uses: actions/checkout@v3
85+
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
8986
- name: Create symlink in GOPATH
9087
run: ln -s $(pwd) ~/go/src/github.com/argoproj/argo-cd
9188
- name: Setup Golang
92-
uses: actions/setup-go@v3
89+
uses: actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f # v3.3.1
9390
with:
9491
go-version: ${{ env.GOLANG_VERSION }}
9592
- name: Install required packages
@@ -109,7 +106,7 @@ jobs:
109106
run: |
110107
echo "/usr/local/bin" >> $GITHUB_PATH
111108
- name: Restore go build cache
112-
uses: actions/cache@v3
109+
uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # v3.0.11
113110
with:
114111
path: ~/.cache/go-build
115112
key: ${{ runner.os }}-go-build-v1-${{ github.run_id }}
@@ -126,12 +123,12 @@ jobs:
126123
- name: Run all unit tests
127124
run: make test-local
128125
- name: Generate code coverage artifacts
129-
uses: actions/upload-artifact@v3
126+
uses: actions/upload-artifact@83fd05a356d7e2593de66fc9913b3002723633cb # v3.1.1
130127
with:
131128
name: code-coverage
132129
path: coverage.out
133130
- name: Generate test results artifacts
134-
uses: actions/upload-artifact@v3
131+
uses: actions/upload-artifact@83fd05a356d7e2593de66fc9913b3002723633cb # v3.1.1
135132
with:
136133
name: test-results
137134
path: test-results/
@@ -145,11 +142,11 @@ jobs:
145142
- name: Create checkout directory
146143
run: mkdir -p ~/go/src/github.com/argoproj
147144
- name: Checkout code
148-
uses: actions/checkout@v3
145+
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
149146
- name: Create symlink in GOPATH
150147
run: ln -s $(pwd) ~/go/src/github.com/argoproj/argo-cd
151148
- name: Setup Golang
152-
uses: actions/setup-go@v3
149+
uses: actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f # v3.3.1
153150
with:
154151
go-version: ${{ env.GOLANG_VERSION }}
155152
- name: Install required packages
@@ -169,7 +166,7 @@ jobs:
169166
run: |
170167
echo "/usr/local/bin" >> $GITHUB_PATH
171168
- name: Restore go build cache
172-
uses: actions/cache@v3
169+
uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # v3.0.11
173170
with:
174171
path: ~/.cache/go-build
175172
key: ${{ runner.os }}-go-build-v1-${{ github.run_id }}
@@ -186,7 +183,7 @@ jobs:
186183
- name: Run all unit tests
187184
run: make test-race-local
188185
- name: Generate test results artifacts
189-
uses: actions/upload-artifact@v3
186+
uses: actions/upload-artifact@83fd05a356d7e2593de66fc9913b3002723633cb # v3.1.1
190187
with:
191188
name: race-results
192189
path: test-results/
@@ -196,9 +193,9 @@ jobs:
196193
runs-on: ubuntu-latest
197194
steps:
198195
- name: Checkout code
199-
uses: actions/checkout@v3
196+
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
200197
- name: Setup Golang
201-
uses: actions/setup-go@v3
198+
uses: actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f # v3.3.1
202199
with:
203200
go-version: ${{ env.GOLANG_VERSION }}
204201
- name: Create symlink in GOPATH
@@ -243,14 +240,14 @@ jobs:
243240
runs-on: ubuntu-latest
244241
steps:
245242
- name: Checkout code
246-
uses: actions/checkout@v3
243+
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
247244
- name: Setup NodeJS
248-
uses: actions/setup-node@v3
245+
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1
249246
with:
250247
node-version: '12.18.4'
251248
- name: Restore node dependency cache
252249
id: cache-dependencies
253-
uses: actions/cache@v3
250+
uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # v3.0.11
254251
with:
255252
path: ui/node_modules
256253
key: ${{ runner.os }}-node-dep-v2-${{ hashFiles('**/yarn.lock') }}
@@ -280,12 +277,12 @@ jobs:
280277
sonar_secret: ${{ secrets.SONAR_TOKEN }}
281278
steps:
282279
- name: Checkout code
283-
uses: actions/checkout@v3
280+
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
284281
with:
285282
fetch-depth: 0
286283
- name: Restore node dependency cache
287284
id: cache-dependencies
288-
uses: actions/cache@v3
285+
uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # v3.0.11
289286
with:
290287
path: ui/node_modules
291288
key: ${{ runner.os }}-node-dep-v2-${{ hashFiles('**/yarn.lock') }}
@@ -296,16 +293,16 @@ jobs:
296293
run: |
297294
mkdir -p test-results
298295
- name: Get code coverage artifiact
299-
uses: actions/download-artifact@v3
296+
uses: actions/download-artifact@9782bd6a9848b53b110e712e20e42d89988822b7 # v3.0.1
300297
with:
301298
name: code-coverage
302299
- name: Get test result artifact
303-
uses: actions/download-artifact@v3
300+
uses: actions/download-artifact@9782bd6a9848b53b110e712e20e42d89988822b7 # v3.0.1
304301
with:
305302
name: test-results
306303
path: test-results
307304
- name: Upload code coverage information to codecov.io
308-
uses: codecov/codecov-action@v3
305+
uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 # v3.1.1
309306
with:
310307
file: coverage.out
311308
- name: Perform static code analysis using SonarCloud
@@ -356,9 +353,9 @@ jobs:
356353
ARGOCD_SERVER: "127.0.0.1:8088"
357354
steps:
358355
- name: Checkout code
359-
uses: actions/checkout@v3
356+
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
360357
- name: Setup Golang
361-
uses: actions/setup-go@v3
358+
uses: actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f # v3.3.1
362359
with:
363360
go-version: ${{ env.GOLANG_VERSION }}
364361
- name: GH actions workaround - Kill XSP4 process
@@ -376,7 +373,7 @@ jobs:
376373
sudo chown runner $HOME/.kube/config
377374
kubectl version
378375
- name: Restore go build cache
379-
uses: actions/cache@v3
376+
uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # v3.0.11
380377
with:
381378
path: ~/.cache/go-build
382379
key: ${{ runner.os }}-go-build-v1-${{ github.run_id }}
@@ -432,7 +429,7 @@ jobs:
432429
set -x
433430
make test-e2e-local
434431
- name: Upload e2e-server logs
435-
uses: actions/upload-artifact@v3
432+
uses: actions/upload-artifact@83fd05a356d7e2593de66fc9913b3002723633cb # v3.1.1
436433
with:
437434
name: e2e-server-k8s${{ matrix.k3s-version }}.log
438435
path: /tmp/e2e-server.log

.github/workflows/codeql.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626

2727
steps:
2828
- name: Checkout repository
29-
uses: actions/checkout@v3
29+
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
3030
with:
3131
# We must fetch at least the immediate parents so that if this is
3232
# a pull request then we can checkout the head.
@@ -39,15 +39,15 @@ jobs:
3939

4040
# Initializes the CodeQL tools for scanning.
4141
- name: Initialize CodeQL
42-
uses: github/codeql-action/init@v1
42+
uses: github/codeql-action/init@8aff97f12c99086bdb92ff62ae06dbbcdf07941b # v2.1.33
4343
# Override language selection by uncommenting this and choosing your languages
4444
# with:
4545
# languages: go, javascript, csharp, python, cpp, java
4646

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

5252
# ℹ️ Command-line programs to run using the OS shell.
5353
# 📚 https://git.io/JvXDl
@@ -61,4 +61,4 @@ jobs:
6161
# make release
6262

6363
- name: Perform CodeQL Analysis
64-
uses: github/codeql-action/analyze@v1
64+
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
- run: |
5858
IMAGE_PLATFORMS=linux/amd64
5959
if [[ "${{ github.event_name }}" == "push" || "${{ contains(github.event.pull_request.labels.*.name, 'test-arm-image') }}" == "true" ]]
@@ -69,7 +69,7 @@ jobs:
6969
7070
# sign container images
7171
- name: Install cosign
72-
uses: sigstore/cosign-installer@main
72+
uses: sigstore/cosign-installer@9becc617647dfa20ae7b1151972e9b3a2c338a2b # v2.8.1
7373
with:
7474
cosign-release: 'v1.13.0'
7575

.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

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

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

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

@@ -233,7 +233,7 @@ jobs:
233233

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

@@ -244,7 +244,7 @@ jobs:
244244
git push origin ${RELEASE_TAG}
245245
246246
- name: Dry run GitHub release
247-
uses: actions/create-release@v1
247+
uses: actions/create-release@0cb9c9b65d5d1901c1f53e5e66eaf4afd303e70e # v1.1.4
248248
env:
249249
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
250250
id: create_release
@@ -296,7 +296,7 @@ jobs:
296296
if: ${{ env.DRY_RUN != 'true' }}
297297

298298
- name: Create GitHub release
299-
uses: softprops/action-gh-release@v1
299+
uses: softprops/action-gh-release@1e07f4398721186383de40550babbdf2b84acfc5 # v0.1.14
300300
env:
301301
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
302302
with:
@@ -314,7 +314,7 @@ jobs:
314314
- name: Update homebrew formula
315315
env:
316316
HOMEBREW_TOKEN: ${{ secrets.RELEASE_HOMEBREW_TOKEN }}
317-
uses: dawidd6/action-homebrew-bump-formula@v3
317+
uses: dawidd6/action-homebrew-bump-formula@02e79d9da43d79efa846d73695b6052cbbdbf48a # v3.8.3
318318
with:
319319
token: ${{env.HOMEBREW_TOKEN}}
320320
formula: argocd

0 commit comments

Comments
 (0)