Skip to content

Commit 46d2bb2

Browse files
author
Alvaro Muñoz
committed
Fix expression always true query
1 parent 1a44d83 commit 46d2bb2

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

ql/lib/qlpack.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
library: true
33
warnOnImplicitThis: true
44
name: githubsecuritylab/actions-all
5-
version: 0.0.12
5+
version: 0.0.13
66
dependencies:
77
codeql/util: ^0.2.0
88
codeql/yaml: ^0.1.2

ql/src/Security/CWE-571/ExpressionIsAlwaysTrue.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import actions
1515

1616
from If i
1717
where
18+
i.getCondition().matches("%${{%") and
1819
i.getConditionStyle() = ["|", ">"]
1920
or
2021
i.getCondition().matches("%${{%") and

ql/src/qlpack.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
library: false
33
name: githubsecuritylab/actions-queries
4-
version: 0.0.12
4+
version: 0.0.13
55
groups:
66
- actions
77
- queries

0 commit comments

Comments
 (0)