App Config: Allow operators to override render config for specific UR… #486
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: Docker vulnerability scans | |
| on: | |
| push: | |
| branches: | |
| - master | |
| tags: | |
| - "v*" | |
| pull_request: | |
| permissions: {} | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| grype: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| runs-on: [ubuntu-x64, ubuntu-arm64] | |
| name: grype scanning (${{ matrix.runs-on }}) | |
| runs-on: ${{ matrix.runs-on }} | |
| permissions: | |
| contents: read # clone the repository | |
| security-events: write # upload SARIF results | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| cache: false | |
| - name: docker build | |
| env: | |
| DOCKER_BUILDKIT: 1 | |
| BUILDKIT_STEP_LOG_MAX_SIZE: -1 | |
| BUILDKIT_STEP_LOG_MAX_SPEED: -1 | |
| run: docker build . -t image-renderer | |
| - name: Scan with Grype | |
| id: scan | |
| uses: anchore/scan-action@1638637db639e0ade3258b51db49a9a137574c3e # v6 | |
| with: | |
| image: image-renderer | |
| fail-build: true | |
| - uses: github/codeql-action/upload-sarif@86b04fb0e47484f7282357688f21d5d0e32175fe # v3 | |
| if: success() || failure() | |
| with: | |
| sarif_file: ${{ steps.scan.outputs.sarif }} | |
| category: Grype | |
| trivy: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| runs-on: [ubuntu-x64, ubuntu-arm64] | |
| name: trivy scanning (${{ matrix.runs-on }}) | |
| runs-on: ${{ matrix.runs-on }} | |
| permissions: | |
| contents: read # clone the repository | |
| security-events: write # upload SARIF results | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| cache: false | |
| - name: docker build | |
| env: | |
| DOCKER_BUILDKIT: 1 | |
| BUILDKIT_STEP_LOG_MAX_SIZE: -1 | |
| BUILDKIT_STEP_LOG_MAX_SPEED: -1 | |
| run: docker build . -t image-renderer | |
| - name: Scan with Trivy | |
| uses: aquasecurity/trivy-action@b6643a29fecd7f34b3597bc6acb0a98b03d33ff8 # 0.33.1 | |
| with: | |
| image-ref: image-renderer | |
| format: sarif | |
| output: trivy-results.sarif | |
| exit-code: 1 | |
| - uses: github/codeql-action/upload-sarif@86b04fb0e47484f7282357688f21d5d0e32175fe # v3 | |
| if: success() || failure() | |
| with: | |
| sarif_file: trivy-results.sarif | |
| category: Trivy |