We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84d1d72 commit 304998dCopy full SHA for 304998d
go/ql/src/Security/CWE-798/HardcodedCredentials.ql
@@ -47,7 +47,6 @@ predicate sensitiveAssignment(
47
predicate hardcodedPrivateKey(DataFlow::Node node, SensitiveExpr::Classification type) {
48
node.getStringValue()
49
.regexpMatch("(?s)-+BEGIN\\b.*\\bPRIVATE KEY-+.+-+END\\b.*\\bPRIVATE KEY-+\n?") and
50
- (node.asExpr() instanceof StringLit or node.asExpr() instanceof AddExpr) and
51
type = SensitiveExpr::certificate()
52
}
53
0 commit comments