Add workflow_dispatch to the triggers for artifact poisoning

This commit is contained in:
Alvaro Muñoz
2024-04-02 12:54:42 +02:00
parent 152d29da38
commit 2a1226c37a

View File

@@ -16,7 +16,7 @@ import codeql.actions.security.ArtifactPoisoningQuery
from LocalJob job, ArtifactDownloadStep download, Step run
where
job.getWorkflow().getATriggerEvent() = "workflow_run" and
job.getWorkflow().getATriggerEvent() = ["workflow_run", "workflow_dispatch"] and
(run instanceof Run or run instanceof UsesStep) and
exists(int i, int j |
job.getStep(i) = download and