feat: scan for vuln #3
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: Scan for vulnerabilities | |
on: | |
pull_request: | |
branches: [main] | |
types: [milestoned, opened, synchronize] | |
schedule: | |
- cron: '0 1 * * *' | |
workflow_dispatch: {} | |
jobs: | |
validate: | |
runs-on: ubuntu-latest | |
name: Scan for vulnerabilities | |
permissions: | |
contents: read # Allows reading the repo contents | |
pull-requests: read | |
steps: | |
- name: Checkout | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
with: | |
fetch-depth: 0 | |
- name: Environment setup | |
uses: defenseunicorns/uds-common/.github/actions/setup@e2ad99f7caba1b0d08856918db9385a431cfdbca # v0.3.3 | |
with: | |
username: ${{ secrets.IRON_BANK_ROBOT_USERNAME }} | |
password: ${{ secrets.IRON_BANK_ROBOT_PASSWORD }} | |
- name: Scan the repository for vulnerabilities | |
run: | | |
uds run vuln-check:grype-scan-sbom | |
- name: Upload SARIF files | |
uses: github/codeql-action/upload-sarif@v3 | |
with: | |
# Specify the directory containing SARIF files if multiple files need to be uploaded | |
# Note: The path is relative to the root of the repository | |
sarif_file: 'sarif/' |