Skip to content

Commit a3e8efc

Browse files
makubackimergify[bot]
authored andcommitted
.pytool/CISettings: Enable CodeQL audit mode
Since a large number of CodeQL queries are being enabled to identify issues that the community can collectively resolve, audit mode needs to be enabled to prevent the build from failing. In the future, this global audit mode can be disabled and individual packages can enable/disable audit mode in their package CI YAML file using the instructions in the CodeQL plugin readme. Cc: Sean Brogan <sean.brogan@microsoft.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com> Reviewed-by: Sean Brogan <sean.brogan@microsoft.com> Acked-by: Laszlo Ersek <lersek@redhat.com> Acked-by: Michael D Kinney <michael.d.kinney@intel.com>
1 parent 1384ce4 commit a3e8efc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.pytool/CISettings.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,12 @@ def GetActiveScopes(self):
196196

197197
try:
198198
scopes += codeql_helpers.get_scopes(self.codeql)
199+
200+
if self.codeql:
201+
shell_environment.GetBuildVars().SetValue(
202+
"STUART_CODEQL_AUDIT_ONLY",
203+
"TRUE",
204+
"Set in CISettings.py")
199205
except NameError:
200206
pass
201207

0 commit comments

Comments
 (0)