Skip to content

Commit c5c0799

Browse files
committed
Scan-secrets: Fix PR forcepush detection condition
I have no idea why the `event_name` != `github.event.action`, but in this case it doesn't. For consistency with other related condition checks, use the later over the former. Signed-off-by: Chris Evich <[email protected]>
1 parent 0a4beea commit c5c0799

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/scan-secrets.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
# Provide handy URL for examination of secret leaks for all events that
7878
# trigger this action.
7979

80-
- if: github.event_name == 'synchronize' || github.base_ref == ''
80+
- if: github.event.action == 'synchronize' || github.base_ref == ''
8181
name: Provide URL showing code that needs human eyes (force-push or merge)
8282
shell: bash
8383
run: |

0 commit comments

Comments
 (0)