diff --git a/azure-pipelines-official.yml b/azure-pipelines-official.yml index e24b9afe7d..13c4271fe9 100644 --- a/azure-pipelines-official.yml +++ b/azure-pipelines-official.yml @@ -47,6 +47,10 @@ parameters: displayName: "Skip tests" type: boolean default: False +- name: codeQLForce + displayName: "Try collecting CodeQL before default CodeQL cadence" + type: boolean + default: False - name: otherOsPools type: object @@ -85,6 +89,13 @@ variables: - name: _ReleaseVersionKind value: release + # Set to 0 to force CodeQL scan without waiting 72 from last attempt (even if it failed). + # This is only a hint for the tool, it might reject to run it if it already has up to date data. + # See the Starting Code QL step for details. + - ${{ if eq(parameters.codeQLForce, True) }}: + - name: Codeql.Cadence + value: 0 + # Group gives access to $microsoft-symbol-server-pat and $symweb-symbol-server-pat - group: DotNet-Symbol-Server-Pats # Group gives access to $dn-bot-devdiv-drop-rw-code-rw and dn-bot-dnceng-build-rw-code-rw