Skip to content

Commit 5e0a708

Browse files
committed
run gosec with Go 1.26
1 parent 0262553 commit 5e0a708

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/docker-image-release.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@ jobs:
1919
- name: Checkout
2020
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2121

22-
- name: Run Gosec Security Scanner
23-
uses: securego/gosec@v2.23.0
24-
with:
25-
args: ./...
26-
2722
- name: Set up Go
2823
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
2924
with:
3025
go-version: '1.26'
3126

27+
- name: Run Gosec Security Scanner
28+
run: |
29+
go install github.com/securego/gosec/v2/cmd/gosec@v2.23.0
30+
gosec ./...
31+
3232
- name: Run Go tests
3333
run: go test ./...
3434

.github/workflows/docker-image-testing.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@ jobs:
2121
- name: Checkout
2222
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2323

24-
- name: Run Gosec Security Scanner
25-
uses: securego/gosec@v2.23.0
26-
with:
27-
args: ./...
28-
2924
- name: Set up Go
3025
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
3126
with:
3227
go-version: '1.26'
3328

29+
- name: Run Gosec Security Scanner
30+
run: |
31+
go install github.com/securego/gosec/v2/cmd/gosec@v2.23.0
32+
gosec ./...
33+
3434
- name: Run Go tests
3535
run: go test ./...
3636

0 commit comments

Comments
 (0)