Skip to content

Commit

Permalink
chore: don't run test workflow in forks (#2221)
Browse files Browse the repository at this point in the history
  • Loading branch information
rgmz authored Dec 15, 2023
1 parent b3040b1 commit b0fab16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit b0fab16

Please sign in to comment.