Skip to content
Closed
Changes from 1 commit
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
46 changes: 46 additions & 0 deletions .github/workflows/docksec.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: DockSec

on:
push:
branches: [main]
paths:
- '**/Dockerfile*'
- '**/Containerfile*'
- '.github/workflows/docksec.yml'
pull_request:
paths:
- '**/Dockerfile*'
- '**/Containerfile*'
- '.github/workflows/docksec.yml'
schedule:
- cron: '0 6 * * 1'

permissions:
contents: read

jobs:
scan:
name: Scan Dockerfile
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
contents: read
security-events: write
steps:
- name: Checkout
uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5

- name: Run DockSec
uses: OWASP/DockSec@d52c8e928552dc39003abda21ac6bc4662b06c39 # v2026.9.21
with:
dockerfile: Dockerfile
scan_only: 'true'
sarif: 'true'
output_dir: ${{ github.workspace }}/docksec-results

- name: Upload SARIF to Code Scanning
uses: github/codeql-action/upload-sarif@3ea06614dafe36dec890db3446326e0d40ce53d4 # v3
if: always()
with:
sarif_file: docksec-results
category: docksec
Loading