Skip to content

Commit

Permalink
chore: set go version for the osv scanner (envoyproxy#4941)
Browse files Browse the repository at this point in the history
set go version for osv scanner

Signed-off-by: Huabing Zhao <[email protected]>
  • Loading branch information
zhaohuabing authored Dec 17, 2024
1 parent 67bf63c commit a9f6cd2
Showing 1 changed file with 19 additions and 12 deletions.
31 changes: 19 additions & 12 deletions .github/workflows/osv-scanner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,27 +19,34 @@ permissions:
jobs:
scan-scheduled:
if: ${{ github.event_name == 'push' || github.event_name == 'schedule' }}
uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@19ec1116569a47416e11a45848722b1af31a857b" # v1.9.0
runs-on: ubuntu-latest
steps:
- uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@19ec1116569a47416e11a45848722b1af31a857b" # v1.9.0
with:
scan-args: |-
--skip-git
--recursive
./
permissions:
actions: read
contents: read
# Require writing security events to upload SARIF file to security tab
security-events: write
with:
scan-args: |-
--skip-git
--recursive
./

scan-pr:
if: ${{ github.event_name == 'pull_request' || github.event_name == 'merge_group' }}
uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable-pr.yml@19ec1116569a47416e11a45848722b1af31a857b" # v1.9.0
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v5
with:
go-version: '1.23.4' # The Go version to download (if necessary) and use.
- uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable-pr.yml@19ec1116569a47416e11a45848722b1af31a857b" # v1.9.0
with:
scan-args: |-
--skip-git
--recursive
./
permissions:
actions: read
contents: read
security-events: write
with:
scan-args: |-
--skip-git
--recursive
./

0 comments on commit a9f6cd2

Please sign in to comment.