Skip to content

Commit 94628ed

Browse files
author
Alvaro Muñoz
committed
Merge branch 'ruby/add_gqlgen_support' of https://github.com/pwntester/codeql into ruby/add_gqlgen_support
2 parents 7307817 + 7a54755 commit 94628ed

File tree

3 files changed

+20
-4
lines changed

3 files changed

+20
-4
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
lgtm,codescanning
2-
* Support for the gqlgen has been added.
2+
* Support for [gqlgen](https://github.com/99designs/gqlgen) has been added.
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
| graph/schema.resolvers.go:14:60:14:64 | definition of input |
1+
failures
2+
testFailures
3+
Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
import go
2+
import TestUtilities.InlineExpectationsTest
23

3-
from Gqlgen::ResolverParameter p
4-
select p
4+
module UntrustedFlowSourceTest implements TestSig {
5+
string getARelevantTag() { result = "resolverParameter" }
6+
7+
predicate hasActualResult(Location location, string element, string tag, string value) {
8+
tag = "resolverParameter" and
9+
exists(Gqlgen::ResolverParameter p |
10+
element = p.toString() and
11+
value = "\"" + p.toString() + "\"" and
12+
p.hasLocationInfo(location.getFile().getAbsolutePath(), location.getStartLine(),
13+
location.getStartColumn(), location.getEndLine(), location.getEndColumn())
14+
)
15+
}
16+
}
17+
18+
import MakeTest<UntrustedFlowSourceTest>

0 commit comments

Comments
 (0)