We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e9b07a commit 0a4beeaCopy full SHA for 0a4beea
.github/workflows/scan-secrets.yml
@@ -81,6 +81,12 @@ jobs:
81
name: Provide URL showing code that needs human eyes (force-push or merge)
82
shell: bash
83
run: |
84
+ if [[ "$before" =~ ^0000+ ]]; then # Push to new branch (i.e. renovate branch)
85
+ echo "Please review newly opened branch for secret-leaks:"
86
+ # The event JSON provides the URL we need
87
+ jq -r -e '.compare' $GITHUB_EVENT_PATH
88
+ return 0
89
+ fi
90
echo "Please review force-push or merged-pr changes for secret-leaks:"
91
before=$(jq -r -e '.before' $GITHUB_EVENT_PATH)
92
after=$(jq -r -e '.after' $GITHUB_EVENT_PATH)
0 commit comments