Files
trufflehog/.github/workflows/secrets.yml
Zachary Rice 8cb5e98804 disable secret scans for community PRs (#3343)
* disable secret scans for community PRs

* check if fork too
2024-09-27 11:55:04 -05:00

27 lines
537 B
YAML

name: Scan for secrets
on:
push:
tags:
- v*
branches:
- main
pull_request:
workflow_dispatch:
jobs:
test:
if: ${{ github.repository == 'trufflesecurity/trufflehog' && !github.event.pull_request.head.repo.fork }}
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
- name: Dogfood
uses: ./
id: dogfood
with:
extra_args: --results=verified