Skip to content

Commit

Permalink
test(ci): test all containers manually
Browse files Browse the repository at this point in the history
  • Loading branch information
philwinder committed Jan 17, 2025
1 parent d6f5531 commit 7a8ea69
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: trivy container scan

on:
push:
branches: [ "main" ]
branches: [ "main", "trivy-matrix-test" ]
pull_request:
branches: [ "main" ]
schedule:
Expand All @@ -12,7 +12,19 @@ permissions:
contents: read

jobs:
build:
image_scan:
strategy:
matrix:
image:
- 'registry.helix.ml/helix/controlplane:latest'
- 'postgres:12.13-alpine'
- 'ankane/pgvector'
- 'quay.io/keycloak/keycloak:23.0'
- 'registry.helix.ml/helix/llamaindex:latest'
- 'registry.helix.ml/helix/gptscript-runner:latest'
- 'apache/tika:2.9.2.1'
- 'registry.helix.ml/helix/typesense:latest'
- 'ghcr.io/go-rod/rod:v0.115.0'
permissions:
contents: read # for actions/checkout to fetch code
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
Expand All @@ -23,14 +35,10 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Build an image from Dockerfile
run: |
docker build -t registry.helix.ml/helix/controlplane:${{ github.sha }} .
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@7b7aa264d83dc58691451798b4d117d53d21edfe
uses: aquasecurity/trivy-action@0.29.0
with:
image-ref: 'registry.helix.ml/helix/controlplane:${{ github.sha }}'
image-ref: ${{ matrix.image }}
format: 'template'
template: '@/contrib/sarif.tpl'
output: 'trivy-results.sarif'
Expand Down

0 comments on commit 7a8ea69

Please sign in to comment.