Skip to content

Commit ad1f35c

Browse files
author
Alvaro Muñoz
committed
Move from yaml to js extractor
1 parent 92cd503 commit ad1f35c

File tree

754 files changed

+808
-874
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

754 files changed

+808
-874
lines changed

.!79690!.DS_Store

Whitespace-only changes.

ql/lib/codeql-pack.lock.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,24 @@
11
---
22
lockVersion: 1.0.0
33
dependencies:
4-
codeql/controlflow:
5-
version: 1.0.0
64
codeql/dataflow:
75
version: 1.0.0
6+
codeql/javascript-all:
7+
version: 1.0.0
8+
codeql/mad:
9+
version: 1.0.0
10+
codeql/regex:
11+
version: 1.0.0
812
codeql/ssa:
913
version: 1.0.0
14+
codeql/tutorial:
15+
version: 1.0.0
1016
codeql/typetracking:
1117
version: 1.0.0
1218
codeql/util:
1319
version: 1.0.0
20+
codeql/xml:
21+
version: 1.0.0
1422
codeql/yaml:
1523
version: 1.0.0
1624
compiled: false

ql/lib/codeql/actions/dataflow/ExternalFlow.qll

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ predicate externallyTriggerableEventsDataModel(string event) {
5555
* - output arg: To node (prefixed with either `env.` or `output.`)
5656
* - provenance: verification of the model
5757
*/
58-
predicate sourceModel(string action, string version, string output, string kind, string provenance) {
59-
Extensions::sourceModel(action, version, output, kind, provenance)
58+
predicate actionsSourceModel(string action, string version, string output, string kind, string provenance) {
59+
Extensions::actionsSourceModel(action, version, output, kind, provenance)
6060
}
6161

6262
/**
@@ -69,10 +69,10 @@ predicate sourceModel(string action, string version, string output, string kind,
6969
* - kind: Either 'Taint' or 'Value'
7070
* - provenance: verification of the model
7171
*/
72-
predicate summaryModel(
72+
predicate actionsSummaryModel(
7373
string action, string version, string input, string output, string kind, string provenance
7474
) {
75-
Extensions::summaryModel(action, version, input, output, kind, provenance)
75+
Extensions::actionsSummaryModel(action, version, input, output, kind, provenance)
7676
}
7777

7878
/**
@@ -84,13 +84,13 @@ predicate summaryModel(
8484
* - kind: sink kind
8585
* - provenance: verification of the model
8686
*/
87-
predicate sinkModel(string action, string version, string input, string kind, string provenance) {
88-
Extensions::sinkModel(action, version, input, kind, provenance)
87+
predicate actionsSinkModel(string action, string version, string input, string kind, string provenance) {
88+
Extensions::actionsSinkModel(action, version, input, kind, provenance)
8989
}
9090

9191
predicate externallyDefinedSource(DataFlow::Node source, string sourceType, string fieldName) {
9292
exists(Uses uses, string action, string version, string kind |
93-
sourceModel(action, version, fieldName, kind, _) and
93+
actionsSourceModel(action, version, fieldName, kind, _) and
9494
uses.getCallee() = action.toLowerCase() and
9595
(
9696
if version.trim() = "*"
@@ -113,7 +113,7 @@ predicate externallyDefinedStoreStep(
113113
DataFlow::Node pred, DataFlow::Node succ, DataFlow::ContentSet c
114114
) {
115115
exists(Uses uses, string action, string version, string input, string output |
116-
summaryModel(action, version, input, output, "taint", _) and
116+
actionsSummaryModel(action, version, input, output, "taint", _) and
117117
c = any(DataFlow::FieldContent ct | ct.getName() = output.replaceAll("output.", "")) and
118118
uses.getCallee() = action.toLowerCase() and
119119
(
@@ -135,7 +135,7 @@ predicate externallyDefinedStoreStep(
135135

136136
predicate externallyDefinedSink(DataFlow::Node sink, string kind) {
137137
exists(Uses uses, string action, string version, string input |
138-
sinkModel(action, version, input, kind, _) and
138+
actionsSinkModel(action, version, input, kind, _) and
139139
uses.getCallee() = action.toLowerCase() and
140140
(
141141
if input.trim().matches("env.%")

ql/lib/codeql/actions/dataflow/internal/ExternalFlowExtensions.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@
55
/**
66
* Holds if a source model exists for the given parameters.
77
*/
8-
extensible predicate sourceModel(
8+
extensible predicate actionsSourceModel(
99
string action, string version, string output, string kind, string provenance
1010
);
1111

1212
/**
1313
* Holds if a summary model exists for the given parameters.
1414
*/
15-
extensible predicate summaryModel(
15+
extensible predicate actionsSummaryModel(
1616
string action, string version, string input, string output, string kind, string provenance
1717
);
1818

1919
/**
2020
* Holds if a sink model exists for the given parameters.
2121
*/
22-
extensible predicate sinkModel(
22+
extensible predicate actionsSinkModel(
2323
string action, string version, string input, string kind, string provenance
2424
);
2525

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
extensions:
22
- addsTo:
33
pack: githubsecuritylab/actions-all
4-
extensible: sinkModel
4+
extensible: actionsSinkModel
55
data:
66
- ["8398a7/action-slack", "*", "input.custom_payload", "code-injection", "manual"]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
extensions:
22
- addsTo:
33
pack: githubsecuritylab/actions-all
4-
extensible: sinkModel
4+
extensible: actionsSinkModel
55
data:
66
- ["SonarSource/sonarcloud-github-action", "*", "input.args", "secret-exfiltration", "manual"]
77

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
extensions:
22
- addsTo:
33
pack: githubsecuritylab/actions-all
4-
extensible: sinkModel
4+
extensible: actionsSinkModel
55
data:
66
- ["actions/github-script", "*", "input.script", "code-injection", "manual"]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
extensions:
22
- addsTo:
33
pack: githubsecuritylab/actions-all
4-
extensible: sourceModel
4+
extensible: actionsSourceModel
55
data:
66
- ["ahmadnassri/action-changed-files", "*", "output.files", "filename", "manual"]
77
- ["ahmadnassri/action-changed-files", "*", "output.json", "json", "manual"]

ql/lib/ext/akhileshns_heroku-deploy.model.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
extensions:
22
- addsTo:
33
pack: githubsecuritylab/actions-all
4-
extensible: summaryModel
4+
extensible: actionsSummaryModel
55
data:
66
- ["akhileshns/heroku-deploy", "*", "input.branch", "output.status", "taint", "manual"]
77
- addsTo:
88
pack: githubsecuritylab/actions-all
9-
extensible: sinkModel
9+
extensible: actionsSinkModel
1010
data:
1111
- ["akhileshns/heroku-deploy", "*", "input.heroku_app_name", "command-injection", "manual"]
1212
- ["akhileshns/heroku-deploy", "*", "input.buildpack", "command-injection", "manual"]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
extensions:
22
- addsTo:
33
pack: githubsecuritylab/actions-all
4-
extensible: sourceModel
4+
extensible: actionsSourceModel
55
data:
66
- ["amannn/action-semantic-pull-request", "*", "output.error_message", "text", "manual"]

0 commit comments

Comments
 (0)