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 <cevich@redhat.com>
This commit is contained in:
Chris Evich
2024-02-01 11:28:49 -05:00
parent 0a4beea6db
commit c5c0799329

View File

@ -77,7 +77,7 @@ jobs:
# Provide handy URL for examination of secret leaks for all events that # Provide handy URL for examination of secret leaks for all events that
# trigger this action. # trigger this action.
- if: github.event_name == 'synchronize' || github.base_ref == '' - if: github.event.action == 'synchronize' || github.base_ref == ''
name: Provide URL showing code that needs human eyes (force-push or merge) name: Provide URL showing code that needs human eyes (force-push or merge)
shell: bash shell: bash
run: | run: |