Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update main.yml #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on: [push]
jobs:
sast_scan:
name: Run Bandit Scan
runs-on: ubuntu-latest
runs-on: ubuntu-latest # defining the os of system

steps:
- name: Checkout code
Expand All @@ -31,19 +31,19 @@ jobs:

image_scan:
name: Build Image and Run Image Scan
runs-on: ubuntu-latest
runs-on: ubuntu-latest # defining the os of container

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

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

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

# - name: Docker Scout Scan
# run: |
Expand All @@ -58,16 +58,16 @@ jobs:
with:
dockerhub-user: ${{ secrets.REPO_USER }}
dockerhub-password: ${{ secrets.REPO_PWD }}
command: quickview,cves
only-severities: critical,high
sarif-file: scout-report.sarif
command: quickview,cves
only-severities: critical,high # only show the critical,high severities
sarif-file: scout-report.sarif #specific format file for docker scout

- name: Upload Artifact
uses: actions/upload-artifact@v3
if: always()
uses: actions/upload-artifact@v3
if: always() # Always runs
with:
name: docker-scout-findings
path: scout-report.sarif
name: docker-scout-findings
path: scout-report.sarif



Expand Down