-
Notifications
You must be signed in to change notification settings - Fork 74
/
azure-pipeline-weekly.yml
59 lines (49 loc) · 1.37 KB
/
azure-pipeline-weekly.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: $(Date:yyy-MM-dd)$(Rev:.r)
appendCommitMessageToRunName: false
trigger: none
schedules:
- cron: 0 6 * * 1,4
displayName: Every Monday and Thursday morning
branches:
include:
- main
always: true
parameters:
# Optionally do not publish to TSA. Useful for e.g. verifying fixes before PR
- name: TSAEnabled
displayName: Publish results to TSA
type: boolean
default: true
variables:
# Force CodeQL enabled so it may be run on any branch
- name: Codeql.Enabled
value: true
# Do not let CodeQL 3000 Extension gate scan frequency
- name: Codeql.Cadence
value: 0
# CodeQL needs this plumbed along as a variable to enable TSA
- name: Codeql.TSAEnabled
value: ${{ parameters.TSAEnabled }}
# CG is run as a part of the CI pipeline, and doesn't need to be run here
- name: skipComponentGovernanceDetection
value: true
stages:
- stage: CodeQL
displayName: CodeQL scan
dependsOn: []
jobs:
- job: CodeQL
displayName: CodeQL Scan
timeoutInMinutes: 90
pool:
name: NetCore1ESPool-Internal
demands: ImageOverride -equals 1es-windows-2022
steps:
- task: CodeQL3000Init@0
displayName: CodeQL Initialize
- template: /eng/templates/steps/build.yml
parameters:
configuration: Release
- task: CodeQL3000Finalize@0
displayName: CodeQL Finalize
- template: /eng/templates/stages/secret-validation.yml