Skip to content

Commit

Permalink
Scan-secrets: Fix PR forcepush detection condition
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
cevich committed Feb 1, 2024
1 parent 0a4beea commit c5c0799
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/scan-secrets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit c5c0799

Please sign in to comment.