Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nanuchi authored Oct 27, 2023
1 parent e5768c1 commit 9157619
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,28 @@ jobs:
name: safety-check-findings
path: sca-report.json

image_scan:
name: Build Image and Run Image Scan
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Docker
uses: docker-practice/actions-setup-docker@v1
with:
docker_version: '20.10.7'

- name: Build Docker Image
run: docker build -f Dockerfile -t myapp:latest .

- name: Docker Scout Scan
run: |
curl -fsSL https://raw.githubusercontent.com/docker/scout-cli/main/install.sh -o install-scout.sh
sh install-scout.sh
docker scout quickview
docker scout cves
Expand Down

0 comments on commit 9157619

Please sign in to comment.