Correctly specify regex.

Co-authored-by: Jaroslav Lobačevski <jarlob@github.com>
This commit is contained in:
Adnan Khan
2025-07-08 10:17:29 -04:00
committed by GitHub
parent aca3d897a2
commit f4f919635a

View File

@@ -264,7 +264,7 @@ class ArtifactPoisoningSink extends DataFlow::Node {
download.getAFollowingStep() = poisonable and
// excluding artifacts downloaded to /tmp and runner.tmp
not download.getPath().regexpMatch("^/tmp.*") and
not download.getPath().regexpMatch("^\\${{\\s?runner.temp\\s?}}.*") and
not download.getPath().regexpMatch("^\\$\\{\\{\\s?runner\\.temp\\s?}}.*") and
(
poisonable.(Run).getScript() = this.asExpr() and
(