Skip to content

Commit 4239fee

Browse files
authored
Merge pull request #22454 from knewbury01/knewbury01/customize-actions-sanitizers-documentation
Documentation Actions EnvironmentCheck
2 parents fb9cb5d + f82774b commit 4239fee

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

actions/ql/lib/codeql/actions/security/ControlChecks.qll

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,9 +276,19 @@ abstract class LabelCheck extends ControlCheck {
276276
}
277277
}
278278

279+
/**
280+
* A deployment environment that may serve as a sanitizer for
281+
* various vulnerabilities.
282+
*
283+
* It is possible to customize which deployment environments apply. The default behavior
284+
* of this model is for any environment to be considered a sanitizer.
285+
* If values are provided then those names
286+
* will be used to define the valid sanitizer set.
287+
* To describe the situation where there is no acceptable sanitizer environment
288+
* populate the predicate `enabledDeploymentEnvironmentDataModel` to contain a single empty string.
289+
*/
279290
class EnvironmentCheck extends ControlCheck instanceof Environment {
280291
EnvironmentCheck() {
281-
// if there are any custom tuples use those
282292
if enabledDeploymentEnvironmentDataModel(_)
283293
then enabledDeploymentEnvironmentDataModel(this.(Environment).getName())
284294
else this instanceof Environment

0 commit comments

Comments
 (0)