Skip to content

Commit 874e45e

Browse files
author
Alvaro Muñoz
committed
feat(sources): New sources
This PR also adds the ability to not limit a source to a trigger event
1 parent 0a2be55 commit 874e45e

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
extensions:
2+
- addsTo:
3+
pack: githubsecuritylab/actions-all
4+
extensible: sourceModel
5+
data:
6+
# https://github.com/trilom/file-changes-action
7+
# if `prNumber` is provided, the trigger event dont need to be `pull_request_target`
8+
- ["trilom/file-changes-action", "*", "output.files", "*", "PR changed files"]
9+
- ["trilom/file-changes-action", "*", "output.files_added", "*", "PR changed files"]
10+
- ["trilom/file-changes-action", "*", "output.files_modified", "*", "PR changed files"]
11+
- ["trilom/file-changes-action", "*", "output.files_removed", "*", "PR changed files"]

ql/src/Security/CWE-094/PrivilegedCodeInjection.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ where
2424
w = source.getNode().asExpr().getEnclosingWorkflow() and
2525
(
2626
w instanceof ReusableWorkflow or
27+
source.getNode().(RemoteFlowSource).getATriggerEvent() = "*" or
2728
w.hasTriggerEvent(source.getNode().(RemoteFlowSource).getATriggerEvent())
2829
)
2930
select sink.getNode(), source, sink,

0 commit comments

Comments
 (0)