Merge branch 'ruby/add_gqlgen_support' of https://github.com/pwntester/codeql into ruby/add_gqlgen_support

This commit is contained in:
Alvaro Muñoz
2023-07-13 21:36:49 +02:00
3 changed files with 20 additions and 4 deletions

View File

@@ -1,2 +1,2 @@
lgtm,codescanning
* Support for the gqlgen has been added.
* Support for [gqlgen](https://github.com/99designs/gqlgen) has been added.

View File

@@ -1 +1,3 @@
| graph/schema.resolvers.go:14:60:14:64 | definition of input |
failures
testFailures

View File

@@ -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>