Skip to content

Commit

Permalink
ci(feat): add osv-scanner workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsneighbour committed Aug 22, 2024
1 parent 5b28316 commit c09e1fd
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/config-osv-scanner.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#[[IgnoredVulns]]
#id = "GO-2022-1059"
#ignoreUntil = 2022-11-09 # Optional exception expiry date
#reason = "No external http servers are written in Go lang."
23 changes: 23 additions & 0 deletions .github/workflows/osv-scanner-scheduled.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: OSV-Scanner Scheduled Scan

on:
schedule:
- cron: "30 12 * * 1"
push:
branches: [main]

permissions:
# Required to upload SARIF file to CodeQL. See: https://github.com/github/codeql-action/issues/2117
actions: read
# Require writing security events to upload SARIF file to security tab
security-events: write
# Only need to read contents
contents: read

jobs:
scan-scheduled:
uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@v1.8.4"
with:
scan-args: |-
--recursive
--config=./.github/config-osv-scanner.toml

0 comments on commit c09e1fd

Please sign in to comment.