diff options
author | Shuang Jiang <jiangshuang007@126.com> | 2021-08-11 17:20:25 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-11 17:20:25 +0300 |
commit | a35e2270568dc51c58001923a479da3d52f9154e (patch) | |
tree | 31c6abca6afc0fda9aee60dacc05b250cc1051d9 /azure-pipelines.lgtm.yml | |
parent | 7d98583ef69906d7d4e45cf029a15c3de7edd86a (diff) |
add lgtm and sdl tool (#571)
add LGTM and SDL checks in build pipeline
Diffstat (limited to 'azure-pipelines.lgtm.yml')
-rw-r--r-- | azure-pipelines.lgtm.yml | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/azure-pipelines.lgtm.yml b/azure-pipelines.lgtm.yml new file mode 100644 index 00000000..663e8604 --- /dev/null +++ b/azure-pipelines.lgtm.yml @@ -0,0 +1,57 @@ +# ASP.NET Core (.NET Framework) +# Build and test ASP.NET Core projects targeting the full .NET Framework. +# Add steps that publish symbols, save build artifacts, and more: +# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core + +pr: none +trigger: none +schedules: +- cron: "0 0 * * *" + displayName: Daily midnight build + branches: + include: + - main + +pool: + 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 + +steps: +- task: NuGetToolInstaller@1 + displayName: Install NuGet Tool + +- task: NuGetCommand@2 + inputs: + command: 'restore' + restoreSolution: '**/*.sln' + feedsToUse: 'config' + +- task: Semmle@0 + displayName: Security - LGTM + env: + SYSTEM_ACCESSTOKEN: $(System.AccessToken) + inputs: + toolVersion: 'LatestPreRelease' + sourceCodeDirectory: '$(Build.SourcesDirectory)' + language: 'csharp' + cleanupBuildCommands: | + dotnet clean mdoc/mdoc.csproj --configuration $(buildConfiguration) + dotnet clean monodoc/monodoc.csproj --configuration $(buildConfiguration) + buildCommands: | + dotnet build mdoc/mdoc.csproj --configuration $(buildConfiguration) + dotnet build monodoc/monodoc.csproj --configuration $(buildConfiguration) + querySuite: 'Required' + timeout: '7200' + ram: '16384' + addProjectDirToScanningExclusionList: true |