Skip to content

Merge pull request #3 from soliplex/chore/soliplex_frontend-version-v… #7

Merge pull request #3 from soliplex/chore/soliplex_frontend-version-v…

Merge pull request #3 from soliplex/chore/soliplex_frontend-version-v… #7

Workflow file for this run

name: Gitleaks Secret Scan
on:
push:
branches:
- '**'
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
gitleaks:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout code
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Run Gitleaks
id: gitleaks
uses: docker://ghcr.io/gitleaks/gitleaks:latest
continue-on-error: true
with:
args: detect --source=/github/workspace --config=/github/workspace/.gitleaks.toml --no-git --verbose --redact --report-format json --report-path /github/workspace/gitleaks-report.json
- name: Report matched files
if: steps.gitleaks.outcome == 'failure'
run: |
if [ -f gitleaks-report.json ]; then
jq -r '[.[].File] | unique | .[]' gitleaks-report.json | head -10
fi
- name: Fail if secrets found
if: steps.gitleaks.outcome == 'failure'
run: exit 1