File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
javascript/ql/lib/semmle/javascript Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,9 @@ module Actions {
93
93
94
94
/** Gets the value of the `if` field in this job, if any. */
95
95
JobIf getIf ( ) { result .getJob ( ) = this }
96
+
97
+ /** Gets the value of the `runs-on` field in this job. */
98
+ JobRunson getRunsOn ( ) { result .getJob ( ) = this }
96
99
}
97
100
98
101
/**
@@ -108,6 +111,19 @@ module Actions {
108
111
Job getJob ( ) { result = job }
109
112
}
110
113
114
+ /**
115
+ * A `runs-on` within a job.
116
+ * See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idruns-on.
117
+ */
118
+ class JobRunson extends YamlNode , YamlScalar {
119
+ Job job ;
120
+
121
+ JobRunson ( ) { job .lookup ( "runs-on" ) = this }
122
+
123
+ /** Gets the step this field belongs to. */
124
+ Job getJob ( ) { result = job }
125
+ }
126
+
111
127
/**
112
128
* A step within an Actions job.
113
129
* See https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idsteps.
You can’t perform that action at this time.
0 commit comments