Enable CodeQL in compliance.yaml
This commit is contained in:
Matt Ward 2023-08-15 15:07:39 +01:00
Родитель 8066cf9c95
Коммит 464f202d26
1 изменённых файлов: 53 добавлений и 3 удалений

Просмотреть файл

@ -5,16 +5,66 @@ resources:
checkoutOptions:
submodules: false
variables:
- name: DOTNET_ROOT
value: /root/.dotnet
pr: none
trigger: none
jobs:
- job: Build
timeoutInMinutes: 360
pool:
vmImage: 'macos-latest'
variables:
- name: BuildConfiguration
value: Debug
- name: TeamName
value: Mono.Addins
- name: Codeql.Language
value: csharp
- name: Codeql.Enabled
value: true
- name: Codeql.TSAEnabled
value: true
- name: Codeql.TSAOptionsPath
value: '$(Build.SourcesDirectory)/.config/tsaoptions.json'
- name: Codeql.SkipTaskAutoInjection
value: true
- name: System.Debug
value: true
steps:
- task: UseDotNet@2
displayName: 'Install .NET 3.1'
inputs:
packageType: 'sdk'
version: '3.1.413'
- task: UseDotNet@2
displayName: 'Install .NET 6'
inputs:
packageType: 'sdk'
version: '6.0.100'
- task: CodeQL3000Init@0
- task: DotNetCoreCLI@2
displayName: 'Build solution Mono.Addins.sln'
inputs:
command: build
arguments: '/p:Configuration=$(BuildConfiguration)'
- task: CodeQL3000Finalize@0
- job: Analysis_Job
displayName: Analysis
pool: VSEngStaticAnalysis-Test
timeoutInMinutes: 300
variables:
- name: DOTNET_ROOT
value: /root/.dotnet
steps:
- task: NodeTool@0