ci(osv-scanner): Enable manual dispatch and update workflow configuration
Rust CI / cargo fmt (push) Successful in 17s
Rust CI / cargo clippy (push) Successful in 34s
Rust CI / cargo check (x86_64-unknown-linux-gnu) (push) Successful in 33s
Rust CI / cargo check (x86_64-unknown-linux-musl) (push) Failing after 9s
Rust CI / cargo test (x86_64-unknown-linux-musl) (push) Failing after 10s
Rust CI / cargo test (x86_64-unknown-linux-gnu) (push) Successful in 1m14s
Rust CI / cargo doc (push) Successful in 31s
Fuzz Smoke / cargo fuzz smoke (push) Failing after 33s
Supply chain / cargo-deny advisories (push) Successful in 6s
Supply chain / cargo-deny bans licenses sources (push) Successful in 5s
Supply chain / actionlint (push) Successful in 3s
Netem Interop / netem interop (push) Successful in 1m5s

Remove deprecated scan arguments as OSV v2 defaults now cover recursive scanning.
This commit is contained in:
Nils Andreas Svee committed 2026-10-05 00:46:32 +07:00
1 parent e65d415c7d
commit 0e32c76c78
1 file changed
+6 -15
+6 -15
View File
@@ -3,8 +3,7 @@
# separate terms of service, privacy policy, and support # separate terms of service, privacy policy, and support
# documentation. # documentation.
# A sample workflow which sets up periodic OSV-Scanner scanning for vulnerabilities, # Scan all dependencies on main and compare newly introduced vulnerabilities on PRs.
# in addition to a PR check which fails if new vulnerabilities are introduced.
# #
# For more examples and options, including how to ignore specific vulnerabilities, # For more examples and options, including how to ignore specific vulnerabilities,
# see https://google.github.io/osv-scanner/github-action/ # see https://google.github.io/osv-scanner/github-action/
@@ -20,6 +19,7 @@ on:
- cron: "45 8 * * 1" - cron: "45 8 * * 1"
push: push:
branches: ["main"] branches: ["main"]
workflow_dispatch:
permissions: permissions:
# Require writing security events to upload SARIF file to security tab # Require writing security events to upload SARIF file to security tab
@@ -29,21 +29,12 @@ permissions:
actions: read actions: read
jobs: jobs:
# Both pinned workflows default to a recursive scan of ./, including fuzz/.
# OSV v2 excludes the root Git repository unless --include-git-root is set;
# the old --skip-git flag is no longer supported.
scan-scheduled: scan-scheduled:
if: ${{ github.event_name == 'push' || github.event_name == 'schedule' }} if: ${{ github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@a345acffa64b0eaede81a3d9aae6141214d9c8fc" # v2.6.0 uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@a345acffa64b0eaede81a3d9aae6141214d9c8fc" # v2.6.0
with:
# Example of specifying custom arguments
scan-args: |-
-r
--skip-git
./
scan-pr: scan-pr:
if: ${{ github.event_name == 'pull_request' || github.event_name == 'merge_group' }} if: ${{ github.event_name == 'pull_request' || github.event_name == 'merge_group' }}
uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable-pr.yml@a345acffa64b0eaede81a3d9aae6141214d9c8fc" # v2.6.0 uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable-pr.yml@a345acffa64b0eaede81a3d9aae6141214d9c8fc" # v2.6.0
with:
# Example of specifying custom arguments
scan-args: |-
-r
--skip-git
./