Skip to content

Build Image

Build Image #4

Workflow file for this run

name: Build Image
on:
workflow_dispatch:
jobs:
build:
name: Build Image
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Build
env:
ECR_REGISTRY: CBIIT
ECR_REPOSITORY: bento-frontend
IMAGE_TAG: build_test
run: |
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
- name: Run Trivy vulnerability scanner
env:
ECR_REGISTRY: CBIIT
ECR_REPOSITORY: bento-frontend
IMAGE_TAG: build_test
uses: aquasecurity/[email protected]
with:
image-ref: $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
format: 'table'
exit-code: '1'
ignore-unfixed: true
#vuln-type: 'os,library'
severity: 'CRITICAL,HIGH'