Skip to content

Commit 5229876

Browse files
chore: add DevOps build pipeline for S360 security vulnerability scanning (#1037)
* chore: add DevOps build pipeline for S360 security vulnerability scanning Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * chore: update build pipeline schedule to daily Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * chore: enable SDL security scanning in build pipeline Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent a33614f commit 5229876

1 file changed

Lines changed: 61 additions & 0 deletions

File tree

.azurepipelines/build.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
trigger: none
2+
pr: none
3+
4+
schedules:
5+
- cron: '0 0 * * *'
6+
displayName: Daily builds
7+
branches:
8+
include:
9+
- main
10+
always: true
11+
12+
resources:
13+
repositories:
14+
- repository: 1ESPipelineTemplates
15+
type: git
16+
name: 1ESPipelineTemplates/1ESPipelineTemplates
17+
ref: refs/tags/release
18+
19+
extends:
20+
template: v1/1ES.Unofficial.PipelineTemplate.yml@1ESPipelineTemplates
21+
parameters:
22+
pool:
23+
name: Azure-Pipelines-1ESPT-ExDShared
24+
os: linux
25+
sdl:
26+
sourceAnalysisPool:
27+
name: Azure-Pipelines-1ESPT-ExDShared
28+
image: windows-2022
29+
os: windows
30+
credscan:
31+
enabled: true
32+
policheck:
33+
enabled: true
34+
binskim:
35+
enabled: true
36+
stages:
37+
- stage: Build
38+
jobs:
39+
- job: Build
40+
displayName: Build Python Core SDK
41+
steps:
42+
- checkout: self
43+
submodules: recursive
44+
45+
- task: UsePythonVersion@0
46+
displayName: Set up Python
47+
inputs:
48+
versionSpec: '3.12'
49+
50+
- script: python -m pip install --upgrade pip
51+
displayName: Upgrade pip
52+
workingDirectory: $(Build.SourcesDirectory)
53+
54+
- script: pip install -e ".[dev]"
55+
displayName: Install dependencies
56+
workingDirectory: $(Build.SourcesDirectory)
57+
58+
- script: python -m pytest tests/
59+
displayName: Run unit tests
60+
workingDirectory: $(Build.SourcesDirectory)
61+

0 commit comments

Comments
 (0)