mirror of
https://github.com/github/codeql.git
synced 2025-12-24 12:46:34 +01:00
21 lines
725 B
Plaintext
21 lines
725 B
Plaintext
import python
|
|
import semmle.python.dataflow.new.DataFlow
|
|
import TestUtilities.InlineExpectationsTest
|
|
import semmle.python.dataflow.new.SensitiveDataSources
|
|
|
|
class SensitiveDataSourcesTest extends InlineExpectationsTest {
|
|
SensitiveDataSourcesTest() { this = "SensitiveDataSourcesTest" }
|
|
|
|
override string getARelevantTag() { result = "SensitiveDataSource" }
|
|
|
|
override predicate hasActualResult(Location location, string element, string tag, string value) {
|
|
exists(location.getFile().getRelativePath()) and
|
|
exists(SensitiveDataSource source |
|
|
location = source.getLocation() and
|
|
element = source.toString() and
|
|
value = source.getClassification() and
|
|
tag = "SensitiveDataSource"
|
|
)
|
|
}
|
|
}
|