Skip to content

Commit 7bb7595

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

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

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

+8-3
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,20 @@ jobs:
4141
env:
4242
GH_TOKEN: ${{ secrets.PAT_TOKEN }}
4343
COMMENT: ${{ steps.read-comment.outputs.comment }}
44+
PULL_NUMBER: ${{ github.event.pull_request.number }}
45+
COMMIT_ID: ${{ steps.commit_sha.outputs.sha }}
4446
run: |
45-
echo ${{ github.event.pull_request.number }}
47+
echo PULL_NUMBER
48+
echo "$PULL_NUMBER"
49+
echo COMMIT_ID
50+
echo "$COMMIT_ID"
4651
curl -L \
4752
-X POST \
4853
-H "Accept: application/vnd.github+json" \
4954
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
5055
-H "X-GitHub-Api-Version: 2022-11-28" \
51-
https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/comments \
52-
-d '{"body":"Great stuff!","commit_id":"${{ steps.commit_sha.outputs.sha }}","path":"trufflehog_result.txt","start_line":1,"start_side":"RIGHT","line":2,"side":"RIGHT"}'
56+
https://api.github.com/repos/${{ github.repository }}/pulls/$PULL_NUMBER/comments \
57+
-d '{"body":"Great stuff!","commit_id":"$COMMIT_ID","path":"trufflehog_result.txt","start_line":1,"start_side":"RIGHT","line":2,"side":"RIGHT"}'
5358
5459
- name: Check file size
5560
run: |

0 commit comments

Comments
 (0)