Skip to content

Commit

Permalink
add osv-scanner config for correcting go version used
Browse files Browse the repository at this point in the history
Signed-off-by: Tuomo Tanskanen <[email protected]>
  • Loading branch information
tuminoid committed Sep 25, 2024
1 parent ce1b21f commit 570a9a1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/osv-scanner.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
GoVersionOverride = "1.22.7"

9 changes: 8 additions & 1 deletion .github/workflows/osv-scanner-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ name: OSV-Scanner Scan
on:
schedule:
- cron: "12 12 * * 1"
workflow_dispatch:

# Restrict jobs in this workflow to have no permissions by default; permissions
# should be granted per job as needed using a dedicated `permissions` block
Expand All @@ -17,5 +18,11 @@ jobs:
actions: read
contents: read # to fetch code (actions/checkout)
security-events: write # for uploading SARIF files
if: ${{ github.repository == 'metal3-io/ip-address-manager' && github.event_name == 'schedule' }}
# if: ${{ github.repository == 'metal3-io/ip-address-manager' }}
uses: google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@7c52d44abe9736f8a11bac47f6baadad7b3389f5 # v1.8.5
with:
scan-args: |-
--config .github/osv-scanner.toml
--skip-git
--recursive
./

0 comments on commit 570a9a1

Please sign in to comment.