Skip to content

Commit

Permalink
vulnerability scan
Browse files Browse the repository at this point in the history
  • Loading branch information
oksana-grishchenko committed Mar 19, 2024
1 parent 0398f26 commit 4100171
Showing 1 changed file with 36 additions and 2 deletions.
38 changes: 36 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,14 @@ jobs:
# push: true
tags: ${{ steps.operator_meta.outputs.tags }}

# - name: Run Trivy vulnerability scanner
# uses: aquasecurity/[email protected]
# with:
# image-ref: ${{ steps.operator_meta.outputs.images }}
# format: 'table'
# exit-code: '1'
# severity: 'CRITICAL,HIGH'

- name: Operator - build and push everest-operator-bundle image
uses: docker/build-push-action@v3
with:
Expand All @@ -183,6 +191,14 @@ jobs:
tags: ${{ steps.bundle_meta.outputs.tags }}
file: everest-operator/bundle.Dockerfile

- name: Run Trivy vulnerability scanner
uses: aquasecurity/[email protected]
with:
image-ref: ${{ steps.bundle_meta.outputs.images }}
format: 'table'
exit-code: '1'
severity: 'CRITICAL,HIGH'

- name: Catalog - checkout
uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -263,6 +279,14 @@ jobs:
tags: ${{ steps.catalog_meta.outputs.tags }}
file: everest-catalog/everest-catalog.Dockerfile

# - name: Run Trivy vulnerability scanner
# uses: aquasecurity/[email protected]
# with:
# image-ref: ${{ steps.catalog_meta.outputs.images }}
# format: 'table'
# exit-code: '1'
# severity: 'CRITICAL,HIGH'

- name: Everest - check out
uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -295,8 +319,8 @@ jobs:
fi
# Update the operator go module to reference the version tag
go get github.com/percona/everest-operator@$GH_TAG
go mod tidy
# go get github.com/percona/everest-operator@$GH_TAG
# go mod tidy
# Change version in Makefile
sed -i "s/RELEASE_VERSION ?=.*/RELEASE_VERSION ?= v$VERSION/g" Makefile
Expand Down Expand Up @@ -366,6 +390,14 @@ jobs:
# push: true
tags: ${{ steps.everest_meta.outputs.tags }}

# - name: Run Trivy vulnerability scanner
# uses: aquasecurity/[email protected]
# with:
# image-ref: ${{ steps.everest_meta.outputs.images }}
# format: 'table'
# exit-code: '1'
# severity: 'CRITICAL,HIGH'

- name: CLI - build binaries
run: |
make release-cli
Expand All @@ -378,3 +410,5 @@ jobs:
dist/*
env:
GITHUB_TOKEN: ${{ github.token }}


0 comments on commit 4100171

Please sign in to comment.