CLOUD-789 - adding password leak check in demand-backup, init-deploy, monitoring-2-0 #1051
Workflow file for this run
This file contains 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: Scan docker | |
on: [pull_request] | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/[email protected] | |
- name: Build an image from Dockerfile | |
run: | | |
export IMAGE=perconalab/percona-server-mongodb-operator:${{ github.sha }} | |
export DOCKER_PUSH=0 | |
export DOCKER_SQUASH=0 | |
./e2e-tests/build | |
- name: Run Trivy vulnerability scanner | |
uses: aquasecurity/[email protected] | |
with: | |
image-ref: 'docker.io/perconalab/percona-server-mongodb-operator:${{ github.sha }}' | |
format: 'table' | |
exit-code: '1' | |
ignore-unfixed: true | |
vuln-type: 'os,library' | |
severity: 'CRITICAL,HIGH' |