Skip to content

Commit

Permalink
Enable codeQL for scheduled CI jobs (#23941)
Browse files Browse the repository at this point in the history
This will enable codeQL to run on all scheduled CI jobs across all
services.
  • Loading branch information
kurtzeborn authored Feb 9, 2023
1 parent 1c13f6e commit d8b29df
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
6 changes: 3 additions & 3 deletions eng/pipelines/templates/jobs/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ parameters:
jobs:
- job: "Build"
variables:
- template: ../variables/globals.yml
Codeql.Enabled: true
Codeql.BuildIdentifier: ${{ parameters.ServiceDirectory }}
Codeql.SkipTaskAutoInjection: false

pool:
name: azsdk-pool-mms-ubuntu-2004-general
Expand All @@ -51,8 +53,6 @@ jobs:
IncludeRelease: ${{ parameters.IncludeRelease }}

- job: "Analyze"
variables:
- template: ../variables/globals.yml

pool:
name: azsdk-pool-mms-ubuntu-2004-general
Expand Down
3 changes: 3 additions & 0 deletions eng/pipelines/templates/stages/archetype-sdk-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ parameters:
type: object
default: []

variables:
- template: ../variables/globals.yml

stages:
- stage: Build
jobs:
Expand Down
2 changes: 2 additions & 0 deletions eng/pipelines/templates/variables/globals.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@ variables:
coalesceResultFilter: $[ coalesce(variables['packageGlobFilter'], '**') ]
ServiceVersion: ""
Package.EnableSBOMSigning: true
# Disable CodeQL injections except for where we specifically enable it
Codeql.SkipTaskAutoInjection: true
# Disable warning until issue 21765 and 21766 are closed
DisableDockerDetector: true

0 comments on commit d8b29df

Please sign in to comment.