Skip to content

Commit

Permalink
Merge pull request #10 from percona/EVEREST-726-trivy-checks
Browse files Browse the repository at this point in the history
EVEREST-726 vulnerability check
  • Loading branch information
oksana-grishchenko authored Mar 25, 2024
2 parents 2d96e1e + 4a31ad4 commit 2456294
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,21 @@ jobs:
echo "Checking there is no source code changes"
git diff --exit-code
- name: Build image to check it for vulnerabilities
uses: docker/build-push-action@v3
with:
context: .
push: false
tags: "perconalab/everest-catalog:0.0.0"
file: everest-catalog.Dockerfile

- name: Run Trivy vulnerability scanner
uses: aquasecurity/[email protected]
with:
image-ref: "perconalab/everest-catalog:0.0.0"
format: 'table'
severity: 'CRITICAL,HIGH'

- name: Run debug commands on failure
if: ${{ failure() }}
run: |
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/percona-build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,12 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
file: everest-catalog.Dockerfile


- name: Run Trivy vulnerability scanner
uses: aquasecurity/[email protected]
with:
image-ref: "perconalab/everest-catalog:0.0.0"
format: 'table'
exit-code: '1'
severity: 'CRITICAL,HIGH'

0 comments on commit 2456294

Please sign in to comment.