Skip to content

Commit

Permalink
fix(security): vulnerabilities found in keychain-vault-server
Browse files Browse the repository at this point in the history
Fixes hyperledger-cacti#2058

Signed-off-by: aldousalvarez <aldousss.alvarez@gmail.com>
  • Loading branch information
aldousalvarez committed Jan 11, 2023
1 parent 25f2f54 commit e0193b3
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/containerscan/allowedlist.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ general:
vulnerabilities:
#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:
name: Scan cactus-keychain-vault-server image
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2.4.0
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 ./packages/cactus-plugin-keychain-vault/src/cactus-keychain-vault-server/ -f ./packages/cactus-plugin-keychain-vault/src/cactus-keychain-vault-server/Dockerfile -t cactus-keychain-vault-server

- uses: Azure/container-scan@v0.1
name: Scan image for vulnerabilities
id: container-scan
continue-on-error: true
with:
image-name: cactus-keychain-vault-server
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM rust:1.63.0 as builder
FROM rust:1.66.0 as builder

WORKDIR /
RUN USER=root cargo new --bin cactus-keychain-vault-server
Expand Down

0 comments on commit e0193b3

Please sign in to comment.