[DRAFT] Pay by link component #1674
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: Leaked Secrets Scan | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| branches: | |
| - "main" | |
| - "develop" | |
| permissions: | |
| contents: read | |
| jobs: | |
| trufflehog: | |
| runs-on: ubuntu-latest | |
| if: github.event_name == 'pull_request' | |
| steps: | |
| - name: Checkout full history | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set BASE and HEAD | |
| id: vars | |
| run: | | |
| echo "BASE_SHA=${{ github.event.pull_request.base.sha }}" >> $GITHUB_OUTPUT | |
| echo "HEAD_SHA=${{ github.event.pull_request.head.sha }}" >> $GITHUB_OUTPUT | |
| - name: Run TruffleHog | |
| uses: trufflesecurity/[email protected] | |
| with: | |
| path: . | |
| base: ${{ steps.vars.outputs.BASE_SHA }} | |
| head: ${{ steps.vars.outputs.HEAD_SHA }} |