Skip to content

Commit 38f0077

Browse files
authored
Exclude artifacts downloaded to runner temp.
1 parent 987af4c commit 38f0077

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,9 @@ class ArtifactPoisoningSink extends DataFlow::Node {
262262

263263
ArtifactPoisoningSink() {
264264
download.getAFollowingStep() = poisonable and
265-
// excluding artifacts downloaded to /tmp
265+
// excluding artifacts downloaded to /tmp and runner.tmp
266266
not download.getPath().regexpMatch("^/tmp.*") and
267+
not download.getPath().regexpMatch("^\${{\s?runner.temp\s?}}.*") and
267268
(
268269
poisonable.(Run).getScript() = this.asExpr() and
269270
(

0 commit comments

Comments
 (0)