Skip to content

Commit 07d742c

Browse files
committed
ci: improved flows
1 parent 0383bc5 commit 07d742c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/security.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,6 @@ jobs:
8585
uses: trufflesecurity/trufflehog@main
8686
with:
8787
path: ./
88-
base: ${{ github.event.repository.default_branch }}
89-
head: HEAD
88+
base: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.sha || 'HEAD~50' }}
89+
head: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || 'HEAD' }}
9090
extra_args: --debug --only-verified

0 commit comments

Comments
 (0)