Merge pull request #288 from voidhashcom/feat/native-sdks-go-php-rust #186
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 | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| schedule: | |
| - cron: "15 11 * * 1" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: secret-scanning-${{ github.head_ref || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| scan: | |
| name: Secret scanners | |
| runs-on: blacksmith-2vcpu-ubuntu-2404 | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Checkout full history | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Scan the published tree | |
| run: >- | |
| docker run --rm | |
| --volume "$GITHUB_WORKSPACE:/repo:ro" | |
| ghcr.io/gitleaks/gitleaks@sha256:c00b6bd0aeb3071cbcb79009cb16a60dd9e0a7c60e2be9ab65d25e6bc8abbb7f | |
| dir /repo --config /repo/.gitleaks.toml --redact --no-banner --exit-code 1 | |
| - name: Scan verified secrets in published history | |
| run: >- | |
| docker run --rm | |
| --volume "$GITHUB_WORKSPACE:/repo:ro" | |
| ghcr.io/trufflesecurity/trufflehog:3.95.9@sha256:59b244249d1a1aef4baa24fe73d3c931616264482580d806d77f6c74d26b3e42 | |
| git file:///repo --fail --only-verified --no-update |