diff --git a/.github/workflows/self-trufflehog.yaml b/.github/workflows/self-trufflehog.yaml new file mode 100644 index 0000000..b55f5a8 --- /dev/null +++ b/.github/workflows/self-trufflehog.yaml @@ -0,0 +1,24 @@ +name: Trufflehog GitHub Actions +on: + push: + pull_request: + +jobs: + trufflehog: + name: Run trufflehog from current branch (self test) + + permissions: + actions: read + contents: read + + pull-requests: write + security-events: write + + runs-on: ${{ !github.event.repository.private && 'ubuntu-latest' || 'ubuntu-arm64-small' }} + steps: + - name: Checkout + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 + with: + persist-credentials: false + - name: Run trufflehog + uses: trufflesecurity/trufflehog@b06f6d72a3791308bb7ba59c2b8cb7a083bd17e4 # v3.88.26