Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion actions/ql/lib/codeql/actions/security/ControlChecks.qll
Original file line number Diff line number Diff line change
Expand Up @@ -276,9 +276,19 @@
}
}

/**
* This type represents deployment environments that may serve as sanitizers for
* various vulnerabilities.
*
* It is possible to customize which deployment environments apply. The default behavior
* of this model is for any environment to be considered a sanitizer.
* If values are provided then those names
* will be used to define the valid sanitizer set.
* To describe the situation where there is no acceptable sanitizer environment
* populate the predicate `enabledDeploymentEnvironmentDataModel` to contain a single empty string.
*/
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
Comment on lines +279 to +289
class EnvironmentCheck extends ControlCheck instanceof Environment {
EnvironmentCheck() {
// if there are any custom tuples use those
if enabledDeploymentEnvironmentDataModel(_)
then enabledDeploymentEnvironmentDataModel(this.(Environment).getName())
else this instanceof Environment
Expand Down
Loading