Merge pull request #3 from soliplex/chore/soliplex_frontend-version-v… #7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |