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

Onboard repo to Secure Development Tools Azure DevOps #152

Merged
merged 1 commit into from
Aug 1, 2023
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
49 changes: 49 additions & 0 deletions sdl-compliance-pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
trigger:
batch: 'true'
branches:
include:
- main
paths:
exclude:
- '*README.md'
- 'docs/*'

pool:
vmImage: 'windows-2022'

variables:
LGTM.UploadSnapshot: true
solution: '**/*.sln'
msbuildPath: '"%ProgramFiles(x86)%\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\MSBuild.exe"'
BuildPlatform: x64
BuildConfiguration: Release

jobs:
- job: SDLCompliance
displayName: 'Running SDL Compliance Policy checks'
continueOnError: true
steps:
- task: Semmle@1
displayName: 'Run CodeQL (Semmle)'
env:
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
inputs:
sourceCodeDirectory: '$(Build.SourcesDirectory)\LogMonitor'
language: 'cpp'
buildCommands: '$(msbuildPath) $(BUILD.SourcesDirectory)\$(solution) /t:clean #
$(msbuildPath) $(BUILD.SourcesDirectory)\$(solution) /p:platform=$(BuildPlatform) /p:configuration=$(BuildConfiguration)'
querySuite: 'Recommended'
timeout: '1800'
ram: '8192'
addProjectDirToScanningExclusionList: true

- task: PublishSecurityAnalysisLogs@3
displayName: 'Publish Security Analysis Logs'
continueOnError: true
inputs:
ArtifactName: 'CodeAnalysisLogs'
ArtifactType: 'Container'
PublishProcessedResults: false
AllTools: false
Semmle: true
ToolLogsNotFoundAction: 'Standard'