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

CyberEO Compliance #2427

Merged
merged 5 commits into from
Feb 8, 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
6 changes: 6 additions & 0 deletions .vsts/common/generate-sbom.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
steps:
- task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0
displayName: "SBOM Generation"
inputs:
BuildDropPath: ./release

1 change: 1 addition & 0 deletions .vsts/darwin/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ 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
11 changes: 9 additions & 2 deletions .vsts/distribution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,26 @@
jobs:
- job: Linux
pool:
vmImage: ubuntu-18.04
name: Azure-Pipelines-EO-Batch-Explorer
demands:
- ImageOverride -equals BatchExplorerBuildImage-Linux
steps:
- template: ./linux/distribution.yml

- job: MacOS
pool:
vmImage: macOS-10.15
demands: xcode
variables:
- name: EOCompliance-Mac
value: true
steps:
- template: ./darwin/distribution.yml

- job: Windows
pool:
vmImage: vs2017-win2016
name: Azure-Pipelines-EO-Batch-Explorer
demands:
- ImageOverride -equals BatchExplorerBuildImage-Windows
steps:
- template: ./win/distribution.yml
2 changes: 2 additions & 0 deletions .vsts/linux/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ steps:
- script: npm run lint
displayName: Lint

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

- template: ../common/publish-artifacts.yml
parameters:
folder: linux
23 changes: 17 additions & 6 deletions .vsts/pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,43 @@ name: $(SourceBranch)$(Rev:.r)
jobs:
- job: Linux
pool:
vmImage: ubuntu-18.04
name: Azure-Pipelines-EO-Batch-Explorer
demands:
- ImageOverride -equals BatchExplorerBuildImage-Linux
steps:
- template: ./linux/ci.yml
- template: ./linux/ci.yml

- job: MacOS
pool:
vmImage: macOS-10.15
demands: xcode
variables:
- name: EOCompliance-Mac
value: true
steps:
- template: ./darwin/ci.yml
- template: ./darwin/ci.yml

- job: Windows
pool:
vmImage: windows-2019
name: Azure-Pipelines-EO-Batch-Explorer
demands:
- ImageOverride -equals BatchExplorerBuildImage-Windows
variables:
Packaging.EnableSBOMSigning: true
steps:
- template: ./win/ci.yml

- job: RegisterDependencies
displayName: Register dependencies
pool:
vmImage: vs2017-win2016
name: Azure-Pipelines-EO-Batch-Explorer
demands:
- ImageOverride -equals BatchExplorerBuildImage-Windows
condition: ne(variables['Build.Reason'], 'PullRequest')
variables:
EnableDetectorPip: true
continueOnError: true
steps:
- template: ./win/win-dependencies.yml
- task: ComponentGovernanceComponentDetection@0
displayName: 'Component Detection'
displayName: "Component Detection"
4 changes: 3 additions & 1 deletion .vsts/update-en-loc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ variables:
locdir: $(Build.ArtifactStagingDirectory)/BatchExplorer

pool:
vmImage: ubuntu-20.04
name: Azure-Pipelines-EO-Batch-Explorer
demands:
- ImageOverride -equals BatchExplorerBuildImage-Linux
steps:
- task: NodeTool@0
inputs:
Expand Down
9 changes: 5 additions & 4 deletions .vsts/win/ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
steps:
# Static analysis before build
- task: securedevelopmentteam.vss-secure-development-tools.build-task-credscan.CredScan@2
displayName: 'Run CredScan'
displayName: "Run CredScan"
inputs:
suppressionsFile: test/cred-scan-exclude.json
toolMajorVersion: V2
Expand All @@ -21,18 +21,19 @@ steps:
displayName: Running spectron

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

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

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

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

- template: ../common/publish-artifacts.yml
parameters:
Expand Down
122 changes: 57 additions & 65 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@
"inflection": "^1.12.0",
"js-yaml": "^3.14.0",
"jschardet": "^2.2.1",
"keytar": "^5.6.0",
"keytar": "^7.7.0",
"load-json-file": "^5.3.0",
"luxon": "^1.24.1",
"make-dir": "^2.1.0",
Expand Down
Loading