Skip to content

Commit

Permalink
Check for latest patch level in Go vulnerability scan (#136)
Browse files Browse the repository at this point in the history
Avoids false positives from previous patch levels of the Go standard
library after a new Go release.

Also use latest version of actions/setup-go.

Signed-off-by: Mark S. Lewis <[email protected]>
  • Loading branch information
bestbeforetoday authored Jun 10, 2023
1 parent 1714d0b commit c99b2a5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/golang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
- uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Generate test mocks
Expand Down Expand Up @@ -42,7 +42,7 @@ jobs:
CREATE_CHANNEL: [create_channel, existing_channel]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
- uses: actions/setup-go@v4
with:
go-version: '1.20'
- run: ./hack/ci.sh ${{matrix.FABRIC_VERSION}} ${{matrix.CREATE_CHANNEL}}
6 changes: 4 additions & 2 deletions .github/workflows/vulnerability-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Security vulnerability scan
on:
schedule:
- cron: '20 02 * * *'
workflow_dispatch:

permissions:
contents: read
Expand All @@ -19,9 +20,10 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: '1.20'
check-latest: true
- name: Scan
run: make scan-go-${{ matrix.target }}

Expand All @@ -41,7 +43,7 @@ jobs:
node-version: 18
- name: Set up Go
if: matrix.target == 'osv-scanner'
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Scan
Expand Down

0 comments on commit c99b2a5

Please sign in to comment.