Skip to content

Commit a3b5d9c

Browse files
authored
Only run CG and CodeQL as part of the internal build job (Azure#3250)
1 parent ee6373a commit a3b5d9c

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

eng/pipelines/templates/jobs/pack.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,18 @@ jobs:
1818
image: $(LINUXVMIMAGE)
1919
os: linux
2020

21+
# Only run CG and codeql on internal build job
22+
${{ if eq(variables['System.TeamProject'], 'internal') }}:
23+
templateContext:
24+
sdl:
25+
componentgovernance:
26+
enabled: true
27+
codeql:
28+
# Need to specify the language because we clone after the codeql initialize step
29+
language: rust
30+
compiled:
31+
enabled: true
32+
2133
steps:
2234
- template: /eng/common/pipelines/templates/steps/sparse-checkout.yml
2335
parameters:

eng/pipelines/templates/stages/1es-redirect.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,16 @@ extends:
5252
name: azsdk-pool
5353
image: windows-2022
5454
os: windows
55-
eslint:
56-
enabled: false
57-
justificationForDisabling: "ESLint injected task has failures because it uses an old version of mkdirp. We should not fail for tools not controlled by the repo. See: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=3556850"
5855
codeql:
5956
compiled:
6057
enabled: false
61-
justificationForDisabling: "CodeQL times our pipelines out by running for 2+ hours before being force canceled."
58+
justificationForDisabling: "To reduce redundant CG runs across all our pipeline jobs we are disabling and only running in our main build job."
59+
componentgovernance:
60+
enabled: false
61+
justificationForDisabling: "To reduce redundant CG runs across all our pipeline jobs we are disabling and only running in our main build job."
62+
eslint:
63+
enabled: false
64+
justificationForDisabling: "ESLint is not interesting for this repo as it is mostly Rust code and any JS/TS in the repo is updated outside of this repo."
6265
credscan:
6366
suppressionsFile: $(Build.SourcesDirectory)/eng/CredScanSuppression.json
6467
baselineFiles: $(Build.SourcesDirectory)/eng/rust.gdnbaselines

0 commit comments

Comments
 (0)