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

Use CodeQL 3000 in lgtm #657

Merged
merged 5 commits into from
Nov 14, 2022
Merged
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
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)'