Skip to content

docker image hardening #100

docker image hardening

docker image hardening #100

Workflow file for this run

name: "Gitleaks Secret Scan"
on:
push:
branches: [ "main", "develop" ]
pull_request:
branches: [ "main", "develop" ]
permissions:
contents: read
jobs:
gitleaks:
runs-on: ubuntu-latest
steps:
- name: Checkout (full history for Gitleaks)
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run Gitleaks
uses: gitleaks/gitleaks-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: detect --redact --exit-code=1 --report-format=sarif --report-path=results.sarif
- name: Upload Gitleaks Report
uses: actions/upload-artifact@v4
with:
name: gitleaks-results
path: results.sarif