File tree Expand file tree Collapse file tree 3 files changed +2
-3
lines changed
test/query-tests/Security/CWE-094 Expand file tree Collapse file tree 3 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ import codeql.actions.security.PoisonableSteps
18
18
from ControlCheck check , MutableRefCheckoutStep checkout
19
19
where
20
20
// the job can be triggered by an external user
21
- check . getEnclosingJob ( ) . isExternallyTriggerable ( ) and
21
+ inPrivilegedExternallyTriggerableJob ( check ) and
22
22
// the mutable checkout step is protected by an access check
23
23
check = [ checkout .getIf ( ) , checkout .getEnclosingJob ( ) .getIf ( ) ] and
24
24
// the checked-out code may lead to arbitrary code execution
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ import codeql.actions.security.PoisonableSteps
18
18
from ControlCheck check , MutableRefCheckoutStep checkout
19
19
where
20
20
// the job can be triggered by an external user
21
- check . getEnclosingJob ( ) . isExternallyTriggerable ( ) and
21
+ inPrivilegedExternallyTriggerableJob ( check ) and
22
22
// the mutable checkout step is protected by an access check
23
23
check = [ checkout .getIf ( ) , checkout .getEnclosingJob ( ) .getIf ( ) ] and
24
24
// there are no evidences that the checked-out code can lead to arbitrary code execution
Original file line number Diff line number Diff line change @@ -233,7 +233,6 @@ nodes
233
233
| .github/workflows/test3.yml:60:27:60:66 | needs.parse-issue.outputs.payload | semmle.label | needs.parse-issue.outputs.payload |
234
234
| .github/workflows/test4.yml:15:21:15:55 | toJSON(github.event.comment) | semmle.label | toJSON(github.event.comment) |
235
235
| .github/workflows/test4.yml:19:21:19:53 | toJSON(github.event.issue) | semmle.label | toJSON(github.event.issue) |
236
- | .github/workflows/test4.yml:23:21:23:41 | toJSON(github) | semmle.label | toJSON(github) |
237
236
| .github/workflows/test4.yml:27:21:27:47 | toJSON(github.event) | semmle.label | toJSON(github.event) |
238
237
| .github/workflows/test.yml:8:7:10:4 | Job outputs node [job_output] | semmle.label | Job outputs node [job_output] |
239
238
| .github/workflows/test.yml:8:20:8:50 | steps.step5.outputs.MSG5 | semmle.label | steps.step5.outputs.MSG5 |
You can’t perform that action at this time.
0 commit comments