Skip to content

Commit

Permalink
update gitleaks.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
iamramashishsharma authored Jul 15, 2024
1 parent f24a489 commit 45920a8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/gitleaks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ jobs:
- name: Output Gitleaks results to console
if: always()
run: |
echo "### Gitleaks detected secrets" >> $GITHUB_STEP_SUMMARY
echo "| 🔴 *File* | *Secret* | *Rule ID* |" >> $GITHUB_STEP_SUMMARY
echo "| --- | --- | --- |" >> $GITHUB_STEP_SUMMARY
jq -r '.runs[0].results[] | "| \(.locations[].physicalLocation.artifactLocation.uri) | \(.message.text) | \(.ruleId) |"' results.sarif >> $GITHUB_STEP_SUMMARY
echo "### 🛑 Gitleaks Detected Secrets 🛑" >> $GITHUB_STEP_SUMMARY
echo "| *Rule ID* | *Commit* | *Secret URL* | *Start Line* | *Author* | *Date* | *Email* | *File* |" >> $GITHUB_STEP_SUMMARY
echo "| --- | --- | --- | --- | --- | --- | --- | --- |" >> $GITHUB_STEP_SUMMARY
jq -r '.runs[0].results[] | "| \(.ruleId) | \(.locations[0].physicalLocation.artifactLocation.uriBaseId) | \(.locations[0].physicalLocation.artifactLocation.uri)?\(.locations[0].physicalLocation.region.startLine) | \(.locations[0].physicalLocation.region.startLine) | \(.partialFingerprints.commit) | \(.partialFingerprints.authorName) | \(.partialFingerprints.authorTime) | \(.partialFingerprints.authorEmail) | \(.locations[0].physicalLocation.artifactLocation.uri) |"' results.sarif >> $GITHUB_STEP_SUMMARY
cat $GITHUB_STEP_SUMMARY
continue-on-error: true

0 comments on commit 45920a8

Please sign in to comment.