Skip to content
Open
Changes from 2 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 (currently manually/externally) provided in `actions/ql/lib/ext/config/deployment_environment.yml`
* then those names will be used to define the valid sanitizer set.
* To create a default of "no default saniziter environment" one can add an
* empty string to the data array in `deployment_environment.yml`.
*/
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