Skip to content

Commit

Permalink
fix(security): vulnerabilities found in example-carbon-accounting
Browse files Browse the repository at this point in the history
Fixes hyperledger-cacti#2062

Signed-off-by: micoferdinand98 <ferdinand.m.b.mico@accenture.com>
  • Loading branch information
micoferdinand98 committed Jul 27, 2023
1 parent dc85c27 commit 39ad4cb
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/trivy-container-scan.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: trivy-container-image-scan



on:
push:
pull_request:
# Publish `main` as Docker `latest` image.
branches:
- main



# Publish `v1.2.3` tags as releases.
tags:
- v*




jobs:



build:
name: Scan cactus-example-carbon-accounting image
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build an image from Dockerfile
run: DOCKER_BUILDKIT=1 docker build ./examples/carbon-accounting -f ./examples/carbon-accounting/Dockerfile -t cactus-example-carbon-accounting
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@0.11.2
with:
image-ref: 'cactus-connector-besu'
format: 'table'
exit-code: '0'
ignore-unfixed: true
vuln-type: 'os,library'
severity: 'CRITICAL,HIGH'

0 comments on commit 39ad4cb

Please sign in to comment.