Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
amunars authored Aug 2, 2024
1 parent 21eb937 commit 55cbb63
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,31 @@ jobs:
with:
name: bandit-findings
path: bandit-report-albertomunar.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
echo ${{ secrets.REPO_PWD }} | docker login -u ${{ secrets.REPO_USER }} --password-stdin
docker scout quickview
docker scout cves

0 comments on commit 55cbb63

Please sign in to comment.