Merge pull request #33 from serverless-ca/update #103
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: Scan for secrets | |
| on: | |
| workflow_dispatch: | |
| push: | |
| permissions: | |
| contents: read | |
| jobs: | |
| secret_scan: | |
| name: Secret scan | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden the runner (Audit all outbound calls) | |
| uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout code | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - name: Install GitLeaks | |
| run: | | |
| wget https://github.com/gitleaks/gitleaks/releases/download/v8.16.1/gitleaks_8.16.1_linux_x64.tar.gz && \ | |
| tar -xf gitleaks_8.16.1_linux_x64.tar.gz | |
| sudo mv gitleaks /usr/local/bin/gitleaks && \ | |
| sudo chmod +x /usr/local/bin/gitleaks | |
| - name: Run GitLeaks Scan | |
| run: | | |
| gitleaks detect --source . -v |