Add template for running D2D on project build and source archives #59
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on: [push] | |
| jobs: | |
| scan-codebase: | |
| runs-on: ubuntu-24.04 | |
| name: Scan codebase and find vulnerabilities | |
| steps: | |
| - name: Get the action.yml from the current branch | |
| uses: actions/checkout@v4 | |
| with: | |
| sparse-checkout: action.yml | |
| sparse-checkout-cone-mode: false | |
| - uses: actions/checkout@v4 | |
| with: | |
| path: scancode-inputs | |
| - uses: ./ | |
| with: | |
| pipelines: "scan_codebase,find_vulnerabilities" | |
| scancodeio-repo-branch: "main" | |
| check-compliance: true | |
| compliance-fail-on-vulnerabilities: true | |
| env: | |
| VULNERABLECODE_URL: https://public.vulnerablecode.io/ |