Skip to content

chore: fix no-binding chart admission deployment #6112

chore: fix no-binding chart admission deployment

chore: fix no-binding chart admission deployment #6112

Workflow file for this run

name: Container Scans
permissions:
actions: read
on:
merge_group:
pull_request:
paths-ignore:
- "**.md"
- "LICENSE"
- "CODEOWNERS"
jobs:
container-scans:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
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@05e31511f85b41b11d1cf0ef85d0992719546e2c # v2.21.0
with:
egress-policy: audit
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Use Node.js latest
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.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