mirror of
https://github.com/github/codeql.git
synced 2026-04-28 18:25:24 +02:00
Merge branch 'ruby/add_gqlgen_support' of https://github.com/pwntester/codeql into ruby/add_gqlgen_support
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
lgtm,codescanning
|
||||
* Support for the gqlgen has been added.
|
||||
* Support for [gqlgen](https://github.com/99designs/gqlgen) has been added.
|
||||
|
||||
@@ -1 +1,3 @@
|
||||
| graph/schema.resolvers.go:14:60:14:64 | definition of input |
|
||||
failures
|
||||
testFailures
|
||||
|
||||
|
||||
@@ -1,4 +1,18 @@
|
||||
import go
|
||||
import TestUtilities.InlineExpectationsTest
|
||||
|
||||
from Gqlgen::ResolverParameter p
|
||||
select p
|
||||
module UntrustedFlowSourceTest implements TestSig {
|
||||
string getARelevantTag() { result = "resolverParameter" }
|
||||
|
||||
predicate hasActualResult(Location location, string element, string tag, string value) {
|
||||
tag = "resolverParameter" and
|
||||
exists(Gqlgen::ResolverParameter p |
|
||||
element = p.toString() and
|
||||
value = "\"" + p.toString() + "\"" and
|
||||
p.hasLocationInfo(location.getFile().getAbsolutePath(), location.getStartLine(),
|
||||
location.getStartColumn(), location.getEndLine(), location.getEndColumn())
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
import MakeTest<UntrustedFlowSourceTest>
|
||||
|
||||
Reference in New Issue
Block a user