Skip to content

Commit

Permalink
Update Docker scan workflows to include Dockerfile path and context f…
Browse files Browse the repository at this point in the history
…or vulnerability checks 🔍
  • Loading branch information
0GiS0 committed Dec 28, 2024
1 parent 665d3e1 commit f784ce3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/docker-scans.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- main
paths-ignore:
- "README.md"
- "tests/**"
workflow_dispatch:

jobs:
Expand All @@ -14,20 +15,35 @@ jobs:
contents: read
security-events: write
uses: 0GiS0/scan-docker-vulnerabilities/.github/workflows/checkov.yaml@main
with:
dockerfile_path: src/Dockerfile

trivy:
permissions:
contents: read
security-events: write
uses: 0GiS0/scan-docker-vulnerabilities/.github/workflows/trivy.yaml@main
with:
dockerfile_path: src/Dockerfile
context: ./src

grype:
permissions:
contents: read
security-events: write
uses: 0GiS0/scan-docker-vulnerabilities/.github/workflows/grype.yaml@main
with:
dockerfile_path: src/Dockerfile
context: ./src

snyk:
permissions:
contents: read
security-events: write
uses: 0GiS0/scan-docker-vulnerabilities/.github/workflows/snyk.yaml@main
with:
dockerfile_path: src/Dockerfile
context: ./src

secrets:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
File renamed without changes.

0 comments on commit f784ce3

Please sign in to comment.