Skip to content

Commit 5da8933

Browse files
chore: add DevOps build pipeline for S360 security vulnerability scanning (#461)
* 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 ad34049 commit 5da8933

1 file changed

Lines changed: 59 additions & 0 deletions

File tree

.azurepipelines/build.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
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 PHP Beta SDK
41+
steps:
42+
- checkout: self
43+
submodules: recursive
44+
45+
- script: sudo apt-get update && sudo apt-get install -y php php-xml php-mbstring php-curl unzip
46+
displayName: Install PHP
47+
48+
- script: |
49+
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
50+
php composer-setup.php --install-dir=/usr/local/bin --filename=composer
51+
displayName: Install Composer
52+
53+
- script: composer install --no-interaction --prefer-dist
54+
displayName: Install dependencies
55+
workingDirectory: $(Build.SourcesDirectory)
56+
57+
- script: vendor/bin/phpunit
58+
displayName: Run unit tests
59+
workingDirectory: $(Build.SourcesDirectory)

0 commit comments

Comments
 (0)