Exclude artifacts downloaded to runner temp.

This commit is contained in:
Adnan Khan
2025-04-25 14:49:01 -04:00
committed by GitHub
parent 987af4ce1d
commit 38f00775bd

View File

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