diff --git a/actions/detect-exposed-workflow-secrets/exposed_secrets_detection/src/utils.py b/actions/detect-exposed-workflow-secrets/exposed_secrets_detection/src/utils.py index fd84a90..75e3ed2 100644 --- a/actions/detect-exposed-workflow-secrets/exposed_secrets_detection/src/utils.py +++ b/actions/detect-exposed-workflow-secrets/exposed_secrets_detection/src/utils.py @@ -91,7 +91,6 @@ def workflow_auto_triggers_on_pull_request(trigger_conditions: list) -> bool: # request/issue actions. automatic_triggers = { "issue_comment", # this can sometimes require a GitHub token stored in an env var - "pull_request", "pull_request_comment", # this is deprecated and replaced by "issue_comment", but GitHub still allows it to be used "pull_request_review", "pull_request_review_comment", diff --git a/actions/detect-exposed-workflow-secrets/exposed_secrets_detection/tests/test_utils.py b/actions/detect-exposed-workflow-secrets/exposed_secrets_detection/tests/test_utils.py index f61f66a..6c6d806 100644 --- a/actions/detect-exposed-workflow-secrets/exposed_secrets_detection/tests/test_utils.py +++ b/actions/detect-exposed-workflow-secrets/exposed_secrets_detection/tests/test_utils.py @@ -116,7 +116,7 @@ def test_workflow_auto_triggers_on_pull_request_one_automatic_trigger_exists(): trigger_conditions = [ "schedule", "workflow_dispatch", - "pull_request", + "pull_request_target", ] workflow_contains_auto_triggers = workflow_auto_triggers_on_pull_request( trigger_conditions