Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable CodeQL for scheduled CI jobs #28751

Merged
merged 7 commits into from
Feb 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions eng/pipelines/templates/jobs/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ jobs:
- job: 'Build'
timeoutInMinutes: 90
variables:
- template: ../variables/globals.yml
Codeql.Enabled: true
Codeql.BuildIdentifier: ${{ parameters.ServiceDirectory }}
Codeql.SkipTaskAutoInjection: false

pool:
name: azsdk-pool-mms-ubuntu-2004-general
Expand Down Expand Up @@ -96,9 +98,6 @@ jobs:

timeoutInMinutes: ${{ parameters.TestTimeoutInMinutes }}

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

dependsOn:
- 'Build'

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 @@ -73,6 +73,9 @@ parameters:
type: boolean
default: false

variables:
- template: /eng/pipelines/templates/variables/globals.yml

stages:
- stage: Build
jobs:
Expand Down
16 changes: 8 additions & 8 deletions eng/pipelines/templates/stages/cosmos-sdk-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ parameters:
type: boolean
default: false

stages:
- template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
ServiceDirectory: ${{ parameters.ServiceDirectory }}
# Skip emulator tests in the CI run
TestMarkArgument: not cosmosEmulator
InjectedPackages: ${{parameters.InjectedPackages}}
Artifacts: ${{parameters.Artifacts}}
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
ServiceDirectory: ${{ parameters.ServiceDirectory }}
# Skip emulator tests in the CI run
TestMarkArgument: not cosmosEmulator
InjectedPackages: ${{parameters.InjectedPackages}}
Artifacts: ${{parameters.Artifacts}}

# - stage: Test_Emulator
# dependsOn: []
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 @@ -5,3 +5,5 @@ variables:
Package.EnableSBOMSigning: true
# this will be disabled until issue#24299 is addressed.
DisableDockerDetector: true
# Disable CodeQL injections except for where we specifically enable it
Codeql.SkipTaskAutoInjection: true