Skip to content

Commit f9865db

Browse files
authored
chore(ci): update GitHub Actions workflows (#2474)
1 parent 95a1e30 commit f9865db

File tree

8 files changed

+29
-29
lines changed

8 files changed

+29
-29
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ jobs:
1414
runs-on: ${{ matrix.os }}
1515
steps:
1616
- name: Check out code into the Go module directory
17-
uses: actions/checkout@85e6279cec87321a52edac9c87bce653a07cf6c2
17+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1818
- name: Set up Go 1.x
19-
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5
19+
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
2020
with:
2121
go-version-file: go.mod
2222
- name: build

.github/workflows/codeql-analysis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,16 @@ jobs:
4242

4343
steps:
4444
- name: Checkout repository
45-
uses: actions/checkout@85e6279cec87321a52edac9c87bce653a07cf6c2
45+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4646

4747
- name: Set up Go 1.x
48-
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5
48+
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
4949
with:
5050
go-version-file: go.mod
5151

5252
# Initializes the CodeQL tools for scanning.
5353
- name: Initialize CodeQL
54-
uses: github/codeql-action/init@5d4e8d1aca955e8d8589aabd499c5cae939e33c7
54+
uses: github/codeql-action/init@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6
5555
with:
5656
languages: ${{ matrix.language }}
5757
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -62,7 +62,7 @@ jobs:
6262
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
6363
# If this step fails, then you should remove it and run the build manually (see below)
6464
- name: Autobuild
65-
uses: github/codeql-action/autobuild@5d4e8d1aca955e8d8589aabd499c5cae939e33c7
65+
uses: github/codeql-action/autobuild@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6
6666

6767
# ℹ️ Command-line programs to run using the OS shell.
6868
# 📚 https://git.io/JvXDl
@@ -76,4 +76,4 @@ jobs:
7676
# make release
7777

7878
- name: Perform CodeQL Analysis
79-
uses: github/codeql-action/analyze@5d4e8d1aca955e8d8589aabd499c5cae939e33c7
79+
uses: github/codeql-action/analyze@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6

.github/workflows/diet-check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ jobs:
1010
diet-metrics:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
13+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1414
with:
1515
fetch-depth: 0
1616

17-
- uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5
17+
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
1818
with:
1919
go-version-file: go.mod
2020

.github/workflows/docker-publish.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,38 +26,38 @@ jobs:
2626
remove-swapfile: "true"
2727

2828
- name: Checkout
29-
uses: actions/checkout@85e6279cec87321a52edac9c87bce653a07cf6c2
29+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3030

3131
- name: Set up QEMU
32-
uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130
32+
uses: docker/setup-qemu-action@ce360397dd3f832beb865e1373c09c0e9f86d70a # v4.0.0
3333

3434
- name: Set up Docker Buildx
35-
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f
35+
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0
3636

3737
- name: vuls/vuls image meta
3838
id: oss-meta
39-
uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051
39+
uses: docker/metadata-action@030e881283bb7a6894de51c315a6bfe6a94e05cf # v6.0.0
4040
with:
4141
images: vuls/vuls
4242
tags: |
4343
type=ref,event=tag
4444
4545
- name: vuls/fvuls image meta
4646
id: fvuls-meta
47-
uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051
47+
uses: docker/metadata-action@030e881283bb7a6894de51c315a6bfe6a94e05cf # v6.0.0
4848
with:
4949
images: vuls/fvuls
5050
tags: |
5151
type=ref,event=tag
5252
5353
- name: Login to DockerHub
54-
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef
54+
uses: docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2 # v4.0.0
5555
with:
5656
username: ${{ secrets.DOCKERHUB_USERNAME }}
5757
password: ${{ secrets.DOCKERHUB_TOKEN }}
5858

5959
- name: OSS image build and push
60-
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83
60+
uses: docker/build-push-action@d08e5c354a6adb9ed34480a06d141179aa583294 # v7.0.0
6161
with:
6262
context: .
6363
file: ./Dockerfile
@@ -70,7 +70,7 @@ jobs:
7070
platforms: linux/amd64,linux/arm64
7171

7272
- name: FutureVuls image build and push
73-
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83
73+
uses: docker/build-push-action@d08e5c354a6adb9ed34480a06d141179aa583294 # v7.0.0
7474
with:
7575
context: .
7676
file: ./contrib/Dockerfile

.github/workflows/golangci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Check out code into the Go module directory
17-
uses: actions/checkout@85e6279cec87321a52edac9c87bce653a07cf6c2
17+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1818
- name: Set up Go 1.x
19-
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5
19+
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
2020
with:
2121
go-version-file: go.mod
2222
- name: golangci-lint
23-
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20
23+
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0
2424
with:
2525
version: v2.9.0
2626
env:

.github/workflows/goreleaser.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
id-token: write # For cosign
1616
steps:
1717
- name: Cosign install
18-
uses: sigstore/cosign-installer@430b6a704fe0c92f1b1261d84376a900f38d90ff
18+
uses: sigstore/cosign-installer@faadad0cce49287aee09b3a48701e75088a2c6ad # v4.0.0
1919
- name: Maximize build space
2020
uses: AdityaGarg8/remove-unwanted-software@90e01b21170618765a73370fcc3abbd1684a7793 # v5
2121
with:
@@ -28,15 +28,15 @@ jobs:
2828
remove-cached-tools: "true"
2929
remove-swapfile: "true"
3030
- name: Checkout
31-
uses: actions/checkout@85e6279cec87321a52edac9c87bce653a07cf6c2
31+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3232
- name: Unshallow
3333
run: git fetch --prune --unshallow
3434
- name: Set up Go
35-
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5
35+
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
3636
with:
3737
go-version-file: go.mod
3838
- name: Run GoReleaser
39-
uses: goreleaser/goreleaser-action@e435ccd777264be153ace6237001ef4d979d3a7a
39+
uses: goreleaser/goreleaser-action@ec59f474b9834571250b370d4735c50f8e2d1e29 # v7.0.0
4040
with:
4141
distribution: goreleaser
4242
version: latest

.github/workflows/scorecard.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434

3535
steps:
3636
- name: "Checkout code"
37-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
37+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3838
with:
3939
persist-credentials: false
4040

@@ -64,7 +64,7 @@ jobs:
6464
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
6565
# format to the repository Actions tab.
6666
- name: "Upload artifact"
67-
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
67+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
6868
with:
6969
name: SARIF file
7070
path: results.sarif
@@ -73,6 +73,6 @@ jobs:
7373
# Upload the results to GitHub's code scanning dashboard (optional).
7474
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
7575
- name: "Upload to code-scanning"
76-
uses: github/codeql-action/upload-sarif@5d4e8d1aca955e8d8589aabd499c5cae939e33c7 # v4.31.9
76+
uses: github/codeql-action/upload-sarif@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6
7777
with:
7878
sarif_file: results.sarif

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Check out code into the Go module directory
13-
uses: actions/checkout@85e6279cec87321a52edac9c87bce653a07cf6c2
13+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1414
- name: Set up Go 1.x
15-
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5
15+
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
1616
with:
1717
go-version-file: go.mod
1818
- name: go mod tidy check

0 commit comments

Comments
 (0)