File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -77,16 +77,22 @@ jobs:
77
77
# Provide handy URL for examination of secret leaks for all events that
78
78
# trigger this action.
79
79
80
- - if : github.event_name == 'synchronize' || github.base_ref == ''
80
+ - if : github.event.action == 'synchronize' || github.base_ref == ''
81
81
name : Provide URL showing code that needs human eyes (force-push or merge)
82
82
shell : bash
83
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
84
90
echo "Please review force-push or merged-pr changes for secret-leaks:"
85
91
before=$(jq -r -e '.before' $GITHUB_EVENT_PATH)
86
92
after=$(jq -r -e '.after' $GITHUB_EVENT_PATH)
87
93
echo "https://github.com/${{ github.repository }}/compare/${before}...${after}"
88
94
89
- - if : github.event_name == 'opened'
95
+ - if : github.event.action == 'opened'
90
96
name : Provide URL showing code that needs human eyes (newly opened PR)
91
97
shell : bash
92
98
run : |
You can’t perform that action at this time.
0 commit comments