Skip to content

Commit ad1bcb9

Browse files
authored
Update trufflehog-secret-scan.yaml
1 parent 7bb7595 commit ad1bcb9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/trufflehog-secret-scan.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
env:
4242
GH_TOKEN: ${{ secrets.PAT_TOKEN }}
4343
COMMENT: ${{ steps.read-comment.outputs.comment }}
44-
PULL_NUMBER: ${{ github.event.pull_request.number }}
44+
PULL_NUMBER: ${{ github.event.number }}
4545
COMMIT_ID: ${{ steps.commit_sha.outputs.sha }}
4646
run: |
4747
echo PULL_NUMBER
@@ -53,7 +53,7 @@ jobs:
5353
-H "Accept: application/vnd.github+json" \
5454
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
5555
-H "X-GitHub-Api-Version: 2022-11-28" \
56-
https://api.github.com/repos/${{ github.repository }}/pulls/$PULL_NUMBER/comments \
56+
https://api.github.com/repos/${{ github.repository }}/pulls/${ PULL_NUMBER }/comments \
5757
-d '{"body":"Great stuff!","commit_id":"$COMMIT_ID","path":"trufflehog_result.txt","start_line":1,"start_side":"RIGHT","line":2,"side":"RIGHT"}'
5858
5959
- name: Check file size

0 commit comments

Comments
 (0)