Skip to content

Commit bcbb8ef

Browse files
authored
Fix/truffle hog ci (#10)
* ci: fix TruffleHog base/head commit comparison --------- Co-authored-by: Hernan Monserrat <16483541+hemonserrat@users.noreply.github.com>
1 parent ea12e9c commit bcbb8ef

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
@@ -88,8 +88,8 @@ jobs:
8888
uses: trufflesecurity/trufflehog@main
8989
with:
9090
path: ./
91-
base: main
92-
head: HEAD
91+
base: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.sha || 'HEAD~1' }}
92+
head: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || 'HEAD' }}
9393
extra_args: --debug --only-verified
9494

9595
crypto-analysis:

0 commit comments

Comments
 (0)