add csp hash #26
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 Scanning (TruffleHog) | |
| # Scans every push and PR for accidentally committed secrets such as | |
| # API keys, Discord tokens, database passwords, OAuth secrets, etc. | |
| # TruffleHog uses entropy analysis + 800+ detectors for known secret formats. | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| permissions: | |
| contents: read | |
| id-token: write # required for verified results | |
| jobs: | |
| trufflehog: | |
| name: Scan for leaked secrets | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| with: | |
| # Fetch full history so TruffleHog can scan all commits in the push/PR | |
| fetch-depth: 0 | |
| - name: TruffleHog OSS | |
| uses: trufflesecurity/trufflehog@main | |
| with: | |
| # On push: scan only the new commits in this push | |
| # On PR: scan only the commits added by the PR branch | |
| extra_args: --results=verified,unknown |