Skip to content

Commit

Permalink
fix(security): vulnerabilities found in corda-4-8-all-in-one Fixes hy…
Browse files Browse the repository at this point in the history
  • Loading branch information
charellesandig committed Jan 11, 2023
1 parent 25f2f54 commit 7654adf
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/containerscan/allowedlist.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
general:
vulnerabilities:
#besu-all-in-one
# #besu-all-in-one

-CVE-2022-37734
-CVE-2022-25857
# -CVE-2022-37734
# -CVE-2022-25857
38 changes: 38 additions & 0 deletions .github/workflows/azure-container-scan.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: azure-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-secure-and-push-8:
name: Scan cactus-corda-4-8-all-in-one-obligation image
runs-on: ubuntu-20.04
steps:
- uses: actions/[email protected]
env:
# (Required) The token to use to make API calls to GitHub.
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

- uses: actions/checkout@v1
- name: Login to DockerHub Registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin


- name: Build Images from Dockerfile
run: DOCKER_BUILDKIT=1 docker build ./tools/docker/corda-all-in-one/ -f ./tools/docker/corda-all-in-one/corda-v4_8/Dockerfile -t cactus-corda-4-8-all-in-one-obligation

- uses: Azure/[email protected]
name: Scan image for vulnerabilities
id: container-scan
continue-on-error: true
with:
image-name: cactus-corda-4-8-all-in-one-obligation
2 changes: 1 addition & 1 deletion tools/docker/corda-all-in-one/corda-v4_8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM docker:20.10.2-dind
# cordaCoreVersion=4.8.5
ARG SAMPLES_KOTLIN_SHA=1504878ce446555bd861bbe4dd3d1154e905a07f
ARG SAMPLES_KOTLIN_CORDAPP_SUB_DIR_PATH="./Advanced/obligation-cordapp/"
ARG CORDA_TOOLS_SHELL_CLI_VERSION=4.8
ARG CORDA_TOOLS_SHELL_CLI_VERSION=4.8.9

WORKDIR /

Expand Down

0 comments on commit 7654adf

Please sign in to comment.