Skip to content

Commit 304998d

Browse files
committed
Update go/ql/src/Security/CWE-798/HardcodedCredentials.ql
1 parent 84d1d72 commit 304998d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

go/ql/src/Security/CWE-798/HardcodedCredentials.ql

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ predicate sensitiveAssignment(
4747
predicate hardcodedPrivateKey(DataFlow::Node node, SensitiveExpr::Classification type) {
4848
node.getStringValue()
4949
.regexpMatch("(?s)-+BEGIN\\b.*\\bPRIVATE KEY-+.+-+END\\b.*\\bPRIVATE KEY-+\n?") and
50-
(node.asExpr() instanceof StringLit or node.asExpr() instanceof AddExpr) and
5150
type = SensitiveExpr::certificate()
5251
}
5352

0 commit comments

Comments
 (0)