diff --git a/.github/workflows/scan_with_trufflehog.yml b/.github/workflows/scan_with_trufflehog.yml new file mode 100644 index 000000000..6e7addea6 --- /dev/null +++ b/.github/workflows/scan_with_trufflehog.yml @@ -0,0 +1,35 @@ +name: TruffleHog Scan + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + trufflehog-scan: + runs-on: ubuntu-latest + defaults: + run: + shell: bash + steps: + - name: Checkout code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: TruffleHog OSS + id: trufflehog + uses: trufflesecurity/trufflehog@v3.63.1 + continue-on-error: true + with: + path: ./ + base: "${{ github.event.repository.default_branch }}" + head: HEAD + extra_args: --debug + + - name: Scan Results Status + if: steps.trufflehog.outcome == 'failure' + run: exit 1