Skip to content

Commit 7be938c

Browse files
AdnaneKhanNapalys
andauthored
Handle multiple whitespaces in runner temp regex.
Co-authored-by: Napalys Klicius <[email protected]>
1 parent e40e4c3 commit 7be938c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ class ArtifactPoisoningSink extends DataFlow::Node {
264264
download.getAFollowingStep() = poisonable and
265265
// excluding artifacts downloaded to the temporary directory
266266
not download.getPath().regexpMatch("^/tmp.*") and
267-
not download.getPath().regexpMatch("^\\$\\{\\{\\s?runner\\.temp\\s?}}.*") and
267+
not download.getPath().regexpMatch("^\\$\\{\\{\\s*runner\\.temp\\s*}}.*") and
268268
not download.getPath().regexpMatch("^\\$RUNNER_TEMP.*") and
269269
(
270270
poisonable.(Run).getScript() = this.asExpr() and

0 commit comments

Comments
 (0)