From c5c0799329e55d2a643905312154d13660018a96 Mon Sep 17 00:00:00 2001 From: Chris Evich Date: Thu, 1 Feb 2024 11:28:49 -0500 Subject: [PATCH] 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 --- .github/workflows/scan-secrets.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/scan-secrets.yml b/.github/workflows/scan-secrets.yml index 38f8344311..3e0420053b 100644 --- a/.github/workflows/scan-secrets.yml +++ b/.github/workflows/scan-secrets.yml @@ -77,7 +77,7 @@ jobs: # Provide handy URL for examination of secret leaks for all events that # 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) shell: bash run: |