Merge branch 'dev' #5
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: Secret Scan | |
| on: | |
| push: | |
| pull_request: | |
| permissions: | |
| contents: read | |
| security-events: write # nécessaire pour upload du rapport SARIF | |
| jobs: | |
| gitleaks: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install gitleaks | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| curl -sSfL https://raw.githubusercontent.com/gitleaks/gitleaks/master/install.sh \ | |
| | bash -s -- -b /usr/local/bin | |
| gitleaks version | |
| - name: Run gitleaks | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| gitleaks detect --source . --report-format sarif --report-path gitleaks.sarif | |
| - name: Upload report | |
| uses: github/codeql-action/upload-sarif@v3 | |
| with: | |
| sarif_file: gitleaks.sarif |