Skip to content

Commit 0ad7f08

Browse files
author
Alvaro Muñoz
committed
fix: do not require github.event.workflow_run.id as an argument for gh run download
1 parent aecb478 commit 0ad7f08

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

ql/lib/codeql/actions/security/ArtifactPoisoningQuery.qll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,6 @@ class GHRunArtifactDownloadStep extends UntrustedArtifactDownloadStep, Run {
178178
GHRunArtifactDownloadStep() {
179179
// eg: - run: gh run download ${{ github.event.workflow_run.id }} --repo "${GITHUB_REPOSITORY}" --name "artifact_name"
180180
this.getScript().getACommand().regexpMatch(".*gh\\s+run\\s+download.*") and
181-
this.getScript().getACommand().matches("%github.event.workflow_run.id%") and
182181
(
183182
this.getScript().getACommand().regexpMatch(unzipRegexp()) or
184183
this.getAFollowingStep().(Run).getScript().getACommand().regexpMatch(unzipRegexp())

0 commit comments

Comments
 (0)