deps: bump chainguard node images from 24 to 26 and suppress irrelevant grype findings #5623
Workflow file for this run
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
| name: Container Scans | |
| permissions: | |
| actions: read | |
| on: | |
| pull_request: | |
| paths-ignore: | |
| - "**.md" | |
| - "LICENSE" | |
| - "CODEOWNERS" | |
| jobs: | |
| container-scans: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| actions: read | |
| id-token: write # Required by chainguard-dev/setup-chainctl step | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@ab7a9404c0f3da075243ca237b5fac12c98deaa5 # v2.19.3 | |
| with: | |
| egress-policy: audit | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Use Node.js latest | |
| uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | |
| with: | |
| node-version: 26 | |
| cache: "npm" | |
| - name: Install Pepr Dependencies | |
| run: npm ci | |
| - name: Login to Chainguard | |
| uses: chainguard-dev/setup-chainctl@2cddd35a2f120d9973e58094dc6878c93cf58c28 # v0.5.1 | |
| with: | |
| identity: ${{ secrets.CHAINGUARD_IDENTITY }} | |
| - name: Build Pepr Controller Image | |
| run: npm run build:image | |
| - name: Vulnerability Scan | |
| id: scan | |
| continue-on-error: true # Scan again with JSON output for artifact upload | |
| uses: anchore/scan-action@e1165082ffb1fe366ebaf02d8526e7c4989ea9d2 # v7.4.0 | |
| with: | |
| image: "pepr:dev" | |
| fail-build: true | |
| severity-cutoff: high | |
| output-format: table | |
| - name: Vulnerability Scan (JSON for Artifact) | |
| id: scan_json | |
| if: steps.scan.outcome == 'failure' | |
| uses: anchore/scan-action@e1165082ffb1fe366ebaf02d8526e7c4989ea9d2 # v7.4.0 | |
| with: | |
| image: "pepr:dev" | |
| fail-build: false | |
| severity-cutoff: high | |
| output-format: json | |
| - name: Upload Scan Results | |
| if: steps.scan.outcome == 'failure' | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: vulnerability-scan-results | |
| path: ${{ steps.scan_json.outputs.json }} | |
| retention-days: 30 | |
| - name: Fail Build on Vulnerabilities | |
| if: steps.scan.outcome == 'failure' | |
| run: exit 1 | |
| - name: Generate SBOM | |
| uses: anchore/sbom-action@e22c389904149dbc22b58101806040fa8d37a610 # v0.24.0 | |
| with: | |
| image: pepr:dev | |
| upload-artifact: true | |
| upload-artifact-retention: 30 |