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

Migrates CyberEO tasks to distribution pipeline #2434

Merged
merged 2 commits into from
Feb 9, 2022
Merged
Show file tree
Hide file tree
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
1 change: 0 additions & 1 deletion .vsts/darwin/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ steps:
. "$(Agent.WorkFolder)/.venv/batchexplorer/bin/activate"
npm run build-and-pack
displayName: Build and pack
- template: ../common/generate-sbom.yml
- template: ../common/publish-artifacts.yml
parameters:
folder: darwin
1 change: 1 addition & 0 deletions .vsts/darwin/distribution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ steps:
displayName: Build dmg
- script: npm run package darwin-manifest
displayName: Create manifest
- template: ../common/generate-sbom.yml
- template: ../common/publish-artifacts.yml
parameters:
folder: darwin
2 changes: 0 additions & 2 deletions .vsts/linux/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ steps:
- script: npm run lint
displayName: Lint

- template: ../common/generate-sbom.yml

- template: ../common/publish-artifacts.yml
parameters:
folder: linux
1 change: 1 addition & 0 deletions .vsts/linux/distribution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ steps:
. "$(Agent.WorkFolder)/.venv/batchexplorer/bin/activate"
npm run package linux-manifest
displayName: Create manifest
- template: ../common/generate-sbom.yml
- template: ../common/publish-artifacts.yml
parameters:
folder: linux
24 changes: 2 additions & 22 deletions .vsts/win/ci.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
steps:
# Static analysis before build
- task: securedevelopmentteam.vss-secure-development-tools.build-task-credscan.CredScan@2
displayName: "Run CredScan"
inputs:
suppressionsFile: test/cred-scan-exclude.json
toolMajorVersion: V2
debugMode: false

- template: ./credscan.yml
- template: ./win-dependencies.yml

- powershell: npm run build-and-pack
Expand All @@ -20,20 +13,7 @@ steps:
npm run spectron
displayName: Running spectron

- task: securedevelopmentteam.vss-secure-development-tools.build-task-antimalware.AntiMalware@3
displayName: "AntiMalware Scanner"
inputs:
EnableServices: true

- task: securedevelopmentteam.vss-secure-development-tools.build-task-publishsecurityanalysislogs.PublishSecurityAnalysisLogs@2
displayName: "Publish Security Analysis Logs"

- task: securedevelopmentteam.vss-secure-development-tools.build-task-postanalysis.PostAnalysis@1
displayName: "Post Analysis"
inputs:
CredScan: true

- template: ../common/generate-sbom.yml
- template: ./security-analysis.yml

- template: ../common/publish-artifacts.yml
parameters:
Expand Down
9 changes: 9 additions & 0 deletions .vsts/win/credscan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
steps:
# Static analysis before build
- task: securedevelopmentteam.vss-secure-development-tools.build-task-credscan.CredScan@2
displayName: "Run CredScan"
inputs:
suppressionsFile: test/cred-scan-exclude.json
toolMajorVersion: V2
debugMode: false

4 changes: 4 additions & 0 deletions .vsts/win/distribution.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
steps:
- template: ./credscan.yml
- template: ./win-dependencies.yml
- powershell: ./scripts/azpipelines/update-build-name.ps1
displayName: Resolve version
Expand All @@ -10,6 +11,8 @@ steps:
exec { npm run package win-exe }
displayName: Build executable

- template: ./security-analysis.yml

- template: ./sign.yml
parameters:
name: "Sign executable and dll"
Expand All @@ -27,6 +30,7 @@ steps:
**/BatchExplorer*Setup*.exe
- powershell: npm run package win-manifest
displayName: Create manifest
- template: ../common/generate-sbom.yml
- template: ../common/publish-artifacts.yml
parameters:
folder: windows
13 changes: 13 additions & 0 deletions .vsts/win/security-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
steps:
- task: securedevelopmentteam.vss-secure-development-tools.build-task-antimalware.AntiMalware@3
displayName: "AntiMalware Scanner"
inputs:
EnableServices: true

- task: securedevelopmentteam.vss-secure-development-tools.build-task-publishsecurityanalysislogs.PublishSecurityAnalysisLogs@2
displayName: "Publish Security Analysis Logs"

- task: securedevelopmentteam.vss-secure-development-tools.build-task-postanalysis.PostAnalysis@1
displayName: "Post Analysis"
inputs:
CredScan: true