-
Notifications
You must be signed in to change notification settings - Fork 19
41 lines (34 loc) · 1.09 KB
/
docker-scout.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Docker Scout
on:
push:
jobs:
docker_scout:
name: Docker container image scan
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/[email protected]
with:
path: ./code
- name: Setup Docker
uses: docker-practice/actions-setup-docker@v1
with:
docker_version: "25.0.3"
- name: Build Docker image
run: docker build -f code/pwnedhub/Dockerfile -t pwnedhub:latest ./code/pwnedhub
- name: Run Docker Scout scan
uses: docker/[email protected]
with:
# `exit-zero: false` for success exit code
# `only-severities: critical,high` for highs and criticals
dockerhub-user: ${{ secrets.DOCKER_USER }}
dockerhub-password: ${{ secrets.DOCKER_PASS }}
command: quickview,cves
sarif-file: docker-scout-report.sarif
exit-code: false
- name: Upload artifact
uses: actions/[email protected]
with:
name: docker-scout-findings
path: docker-scout-report.sarif
#if: always()