Skip to content

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

🌱 Use osv-scanner workflow file instead of local workflow

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

# 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:

Check failure on line 18 in .github/workflows/osv-scanner-scan.yml

View workflow run for this annotation

GitHub Actions / OSV-Scanner Scan

Invalid workflow file

The workflow is not valid. .github/workflows/osv-scanner-scan.yml (Line: 18, Col: 3): Error calling workflow 'google/osv-scanner-action/.github/workflows/[email protected]'. The workflow is requesting 'actions: read', but is only allowed 'actions: none'.
permissions:
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]"