Skip to content

🌱 Use osv-scanner workflow file instead of local workflow #19

🌱 Use osv-scanner workflow file instead of local workflow

🌱 Use osv-scanner workflow file instead of local workflow #19

# This file is adapted from https://github.com/google/osv-scanner
name: OSV-Scanner Scan
on:
schedule:
- cron: "12 12 * * 1"
# testing
pull_request:
branches: [main]
# Restrict jobs in this workflow to have no permissions by default; permissions
# should be granted per job as needed using a dedicated `permissions` block
permissions: {}
jobs:
scan-scheduled:
permissions:
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' }}
uses: "google/osv-scanner-action/.github/workflows/[email protected]"