Skip to content

Commit

Permalink
feat: Add Trivy scans to images
Browse files Browse the repository at this point in the history
  • Loading branch information
ruivieira committed Oct 26, 2024
1 parent 6bc45a0 commit 559f25a
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/security.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: build
on:
push:
branches:
- main
pull_request:
jobs:
build:
name: Build
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Build an TrustyAI operator image from Dockerfile
run: docker build -t quay.io/trustyai/trustyai-service-operator:${{ github.sha }} .
- name: Run Trivy vulnerability scanner
uses: aquasecurity/[email protected]
with:
image-ref: "quay.io/trustyai/trustyai-service-operator:${{ github.sha }}"
format: "table"
exit-code: "1"
ignore-unfixed: true
vuln-type: "os,library"
severity: "CRITICAL,HIGH,MEDIUM"
- name: Build an LM-Eval driver image from Dockerfile
run: docker build -f Dockerfile.driver -t quay.io/trustyai/ta-lmes-driver:${{ github.sha }} .
- name: Run Trivy vulnerability scanner
uses: aquasecurity/[email protected]
with:
image-ref: "quay.io/trustyai/ta-lmes-driver:${{ github.sha }}"
format: "table"
exit-code: "1"
ignore-unfixed: true
vuln-type: "os,library"
severity: "CRITICAL,HIGH,MEDIUM"

0 comments on commit 559f25a

Please sign in to comment.