chore(deps): update all-ci-dependencies #593
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: Build images | |
| permissions: {} | |
| on: | |
| pull_request: | |
| branches: | |
| - "*" | |
| paths: | |
| - '.github/workflows/docker-*.yml' | |
| - 'api/**' | |
| - 'internal/**' | |
| - 'e2e/*' | |
| - '.ko.yaml' | |
| - 'go.*' | |
| - 'main.go' | |
| - 'Makefile' | |
| jobs: | |
| build-images: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| security-events: write | |
| actions: read | |
| contents: read | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1 | |
| - name: Setup QEMU | |
| uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3.7.0 | |
| - name: Setup Docker Buildx | |
| id: buildx | |
| uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1 | |
| - name: ko build | |
| run: VERSION=${{ github.sha }} make ko-build-all | |
| - name: Trivy Scan Image | |
| uses: aquasecurity/trivy-action@b6643a29fecd7f34b3597bc6acb0a98b03d33ff8 # 0.33.1 | |
| with: | |
| scan-type: 'fs' | |
| ignore-unfixed: true | |
| format: 'sarif' | |
| output: 'trivy-results.sarif' | |
| severity: 'CRITICAL,HIGH' | |
| env: | |
| # Trivy is returning TOOMANYREQUESTS | |
| # See: https://github.com/aquasecurity/trivy-action/issues/389#issuecomment-2385416577 | |
| TRIVY_DB_REPOSITORY: 'public.ecr.aws/aquasecurity/trivy-db:2' | |
| - name: Upload Trivy scan results to GitHub Security tab | |
| uses: github/codeql-action/upload-sarif@c1a2b73420f0c02efb863cc6921c531bc1a54f4f | |
| with: | |
| sarif_file: 'trivy-results.sarif' |