[main](gha): Bump anchore/scan-action from 5 to 6 in the dependencies group #756
This file contains 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
name: "Check CVEs" | |
on: | |
workflow_dispatch: | |
pull_request: | |
jobs: | |
check-cves: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out codebase | |
uses: actions/checkout@v4 | |
- name: Scan current project | |
uses: anchore/scan-action@v6 | |
with: | |
path: "." | |
add-cpes-if-none: true | |
by-cve: true | |
output-format: json | |
- name: Print scan results | |
run: .github/scripts/format-cve-scan-results.sh results.json > $GITHUB_STEP_SUMMARY | |
if: always() | |
- name: Archive CVE scan results | |
uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: cve-scan-results-${{ github.sha }}-${{ github.run_id }}-${{ github.run_number }} | |
path: results.json |