Skip to content

Commit

Permalink
Merge pull request #658 from mono/develop
Browse files Browse the repository at this point in the history
Use CodeQL 3000 in lgtm (#657)
  • Loading branch information
huangmin-ms authored Nov 14, 2022
2 parents 18ebe04 + 75d6c3d commit f21c774
Showing 1 changed file with 12 additions and 35 deletions.
47 changes: 12 additions & 35 deletions azure-pipelines.lgtm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,44 +13,21 @@ schedules:
- main

pool:
vmImage: 'windows-2019'
vmImage: 'windows-latest'

variables:
- name: LGTM.SnapshotIdentifiers
value: Build=Full
- name: LGTM.SnapshotMetadata
value: Owner=MDoc
- name: LGTM.UploadSnapshot
value: true
- name: Semmle.SkipAnalysis
value: true
- name: buildConfiguration
value: Release
- name: msbuild
value: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\msbuild.exe'

steps:
- task: NuGetToolInstaller@1
displayName: Install NuGet Tool
Codeql.Enabled: true
solution: 'apidoctools.sln'
buildConfiguration: 'Release'

- task: NuGetCommand@2
displayName: NuGet restore
steps:
- task: CmdLine@2
displayName: make prepare
inputs:
command: 'restore'
restoreSolution: '**/*.sln'
feedsToUse: 'config'
script: 'make prepare'

- task: Semmle@0
displayName: Security - LGTM
env:
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
- task: MSBuild@1
displayName: MSBuild
inputs:
toolVersion: 'LatestPreRelease'
sourceCodeDirectory: '$(Build.SourcesDirectory)'
language: 'csharp'
cleanupBuildCommands: 'dotnet clean apidoctools.sln --configuration $(buildConfiguration)'
buildCommands: '"$(msbuild)" apidoctools.sln /p:Configuration=$(buildConfiguration)'
querySuite: 'Required'
timeout: '7200'
ram: '16384'
addProjectDirToScanningExclusionList: true
solution: '$(solution)'
configuration: '$(buildConfiguration)'

0 comments on commit f21c774

Please sign in to comment.