diff --git a/eng/ci/official-build.yml b/eng/ci/official-build.yml index 6b487180a..15f1c1518 100644 --- a/eng/ci/official-build.yml +++ b/eng/ci/official-build.yml @@ -13,7 +13,7 @@ trigger: schedules: # Ensure we build nightly to catch any new CVEs and report SDL often. -- cron: "0 0 * * *" +- cron: "0 3 * * *" displayName: Nightly Build branches: include: @@ -52,6 +52,9 @@ extends: name: 1es-pool-azfunc image: 1es-windows-2022 os: windows + ${{ if eq( variables['Build.Reason'], 'Schedule' ) }}: + demands: + - Priority -equals Low sdl: codeql: diff --git a/eng/ci/public-build.yml b/eng/ci/public-build.yml index aafc5a6b3..61508468f 100644 --- a/eng/ci/public-build.yml +++ b/eng/ci/public-build.yml @@ -7,7 +7,7 @@ trigger: schedules: # Ensure we build nightly to catch any new CVEs and report SDL often. -- cron: "0 0 * * *" +- cron: "0 3 * * *" displayName: Nightly Build branches: include: @@ -38,6 +38,9 @@ extends: name: 1es-pool-azfunc-public image: 1es-windows-2022 os: windows + ${{ if eq( variables['Build.Reason'], 'Schedule' ) }}: + demands: + - Priority -equals Low sdl: codeql: