Skip to content

Commit ed0adde

Browse files
ramsessanchezCopilotCopilot
authored
chore: add DevOps build pipeline for S360 security vulnerability scanning (#997)
* add devops build pipeline to surface security vulenaribilites sooner * chore: update to daily schedule and enable SDL security scanning Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 54989dc commit ed0adde

1 file changed

Lines changed: 62 additions & 0 deletions

File tree

.azurepipelines/build.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
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 Go SDK
41+
steps:
42+
- checkout: self
43+
submodules: recursive
44+
45+
- task: GoTool@0
46+
displayName: Set up Go
47+
inputs:
48+
version: '1.25'
49+
50+
- script: |
51+
go mod download
52+
go mod verify
53+
displayName: Install dependencies
54+
workingDirectory: $(Build.SourcesDirectory)
55+
56+
- script: go build ./...
57+
displayName: Build SDK
58+
workingDirectory: $(Build.SourcesDirectory)
59+
60+
- script: go test ./...
61+
displayName: Run unit tests
62+
workingDirectory: $(Build.SourcesDirectory)

0 commit comments

Comments
 (0)