githubEdit

OSV-Scanner

OSV-Scanner is an open-source tool created by Google to detect vulnerabilities in projects by scanning dependencies against the OSV database.

OSV-Scannerarrow-up-right is a linter for Security.

You can enable the OSV-Scanner linter with:

trunk check enable osv-scanner

Auto Enabling

OSV-Scanner will be auto-enabled if any Lockfile files are present.

Settings

OSV-Scanner supports the following config files:

  • osv-scanner.toml

You can move these files to .trunk/configs and trunk check will still find them. See Moving Linters for more info.

circle-exclamation

To properly configure OSV scanner if you decide to move its config file, you can specify the path to osv-scanner.toml using the --config flag. Example override to add to trunk.yaml :

commands:
  - name: scan
    run: |
      osv-scanner \
        --lockfile=${target} \
        --format json \
        --config=.trunk/configs/osv-scanner.toml

Last updated