mirror of
https://github.com/github/codeql.git
synced 2026-03-01 05:13:41 +01:00
19 lines
642 B
Plaintext
19 lines
642 B
Plaintext
import java
|
|
import semmle.code.java.security.HardcodedCredentialsSourceCallQuery
|
|
import TestUtilities.InlineExpectationsTest
|
|
|
|
module HardcodedCredentialsSourceCallTest implements TestSig {
|
|
string getARelevantTag() { result = "HardcodedCredentialsSourceCall" }
|
|
|
|
predicate hasActualResult(Location location, string element, string tag, string value) {
|
|
tag = "HardcodedCredentialsSourceCall" and
|
|
exists(DataFlow::Node sink | HardcodedCredentialSourceCallFlow::flowTo(sink) |
|
|
sink.getLocation() = location and
|
|
element = sink.toString() and
|
|
value = ""
|
|
)
|
|
}
|
|
}
|
|
|
|
import MakeTest<HardcodedCredentialsSourceCallTest>
|