chore: don't run test workflow in forks (#2221)

This commit is contained in:
Richard Gomez
2023-12-14 19:48:48 -05:00
committed by GitHub
parent b3040b1227
commit b0fab16ad4
+1 -1
View File
@@ -10,7 +10,7 @@ on:
jobs:
test:
if: ${{ ! github.event.pull_request.head.repo.fork }}
if: ${{ github.repository == 'trufflesecurity/trufflehog' && !github.event.pull_request.head.repo.fork }}
runs-on: ubuntu-latest
permissions:
actions: "read"