We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d5cd1a commit 023e8cbCopy full SHA for 023e8cb
1 file changed
ql/lib/codeql/actions/security/UseOfUnversionedImmutableAction.qll
@@ -6,6 +6,11 @@ class UnversionedImmutableAction extends UsesStep {
6
UnversionedImmutableAction() {
7
immutableActionsDataModel(immutable_action) and
8
this.getCallee() = immutable_action and
9
- not this.getVersion().regexpMatch("^(v)?[0-9]+(\\.[0-9]+)*(\\.[xX])?$")
+ isNotSemVer(this.getVersion())
10
}
11
12
+
13
+bindingset[version]
14
+predicate isNotSemVer(string version) {
15
+ not version.regexpMatch("^(v)?[0-9]+(\\.[0-9]+)*(\\.[xX])?$")
16
+}
0 commit comments