-
Notifications
You must be signed in to change notification settings - Fork 25
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
Move to Node10, automate build & installation, add SARIF reports #93
Closed
Closed
Changes from 38 commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
ec3d0e5
Merge pull request #82 from dependency-check/develop
ejohn20 caf7a20
Add option to produce SARIF reports
JoostVoskuil 4a705d7
fix to UperCase
JoostVoskuil d65c462
Push duplicate
JoostVoskuil f955f20
Build Automation & Node10 support
JoostVoskuil 32d4068
update task id for testing
JoostVoskuil 391015f
11
JoostVoskuil 942abd7
Fix extensionId mistake
JoostVoskuil 2a0fe22
Add fetchDepth for pipeline to speed up
JoostVoskuil 436b947
Fix extensionVersion
JoostVoskuil 2398755
Update dependencies
JoostVoskuil 66c86b2
remove dependency
JoostVoskuil f202c3e
Tidy up
JoostVoskuil c84527e
Removed unused dependencies again
JoostVoskuil 82538e7
Fix build step
JoostVoskuil 3f01885
stupid only prod
JoostVoskuil 928b270
fix package
JoostVoskuil 5d76416
make non addressable
JoostVoskuil d6a894d
fix
JoostVoskuil 1bca013
fixed?
JoostVoskuil 5b35aeb
ts from es6 to es2020
JoostVoskuil e2548b1
Fix bug for SARIF upload
JoostVoskuil 3e8cabd
fixes for es2020
JoostVoskuil 0472aa9
add logdebug
JoostVoskuil 2362e13
Fix SARIF
JoostVoskuil a82d2f4
Fix sarif
JoostVoskuil 74f4a1d
bugfix
JoostVoskuil 89066cf
bugfix for CodeAnalysisLogs
JoostVoskuil 0a995cd
Fix uploadArtifact
JoostVoskuil 738db8e
Last fixes
JoostVoskuil 27ab0e1
Fixed pipeline
JoostVoskuil 6e7384f
Process feedbeck on making files unique & optional upload of reports …
JoostVoskuil 101ff29
Enabling testing mode
JoostVoskuil 00e25c8
support for multiple runs
JoostVoskuil 238ad3f
Fix of wrong array initialization
JoostVoskuil 3511d8d
This is strange
JoostVoskuil 4b2ca27
Add JobId as unique identifier for reports
JoostVoskuil 7a34094
Use DisplayNames
JoostVoskuil 42fd76c
try something
JoostVoskuil fffc9dd
Undo pipeline changes for testing
JoostVoskuil File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
name: '6.1$(rev:.r)' | ||
|
||
trigger: | ||
- main | ||
- feature/* | ||
- features/* | ||
|
||
pool: | ||
vmImage: 'ubuntu-latest' | ||
|
||
variables: | ||
publisher: 'foxholenl' #'dependency-check' | ||
extensionId: 'dependencycheck' | ||
extensionName: 'OWASP Dependency Check' | ||
extensionFileName: 'dependency-check.vsix' | ||
shareWith: 'foxholenl' | ||
|
||
stages: | ||
- stage: 'Build' | ||
displayName: 'Build' | ||
jobs: | ||
- job: | ||
steps: | ||
- checkout: self | ||
fetchDepth: 2 | ||
- task: NodeTool@0 | ||
inputs: | ||
versionSpec: '16.x' | ||
displayName: 'Install Node.js' | ||
|
||
- task: Bash@3 | ||
inputs: | ||
targetType: 'inline' | ||
script: 'cd src/Tasks/dependency-check-build-task && npm run build' | ||
displayName: 'Run npm install & tsc compile' | ||
|
||
- task: TfxInstaller@3 | ||
displayName: 'Use Node CLI for Azure DevOps' | ||
inputs: | ||
version: '0.9.x' | ||
checkLatest: true | ||
|
||
- task: PackageAzureDevOpsExtension@3 | ||
displayName: 'Package Extension: $(Build.SourcesDirectory)' | ||
name: 'packageStep' | ||
inputs: | ||
rootFolder: '$(Build.SourcesDirectory)' | ||
outputPath: '$(Build.ArtifactStagingDirectory)/dependency-check.vsix' | ||
publisherId: $(publisher) | ||
extensionId: $(extensionId) | ||
extensionName: $(extensionName) | ||
extensionTag: '-build' | ||
extensionVersion: '$(Build.BuildNumber)' | ||
extensionVisibility: private | ||
|
||
- task: PublishPipelineArtifact@1 | ||
displayName: 'Publish vsix' | ||
inputs: | ||
publishLocation: pipeline | ||
targetPath: '$(packageStep.Extension.OutputPath)' | ||
artifact: 'vsix' | ||
condition: succeededOrFailed() | ||
|
||
- stage: Test | ||
displayName: 'Publish to Marketplace (private)' | ||
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest')) | ||
dependsOn: 'Build' | ||
jobs: | ||
- deployment: | ||
environment: Test | ||
strategy: | ||
runOnce: | ||
deploy: | ||
steps: | ||
|
||
- task: TfxInstaller@3 | ||
displayName: 'Use Node CLI for Azure DevOps' | ||
inputs: | ||
version: '0.9.x' | ||
checkLatest: true | ||
|
||
- task: PublishAzureDevOpsExtension@3 | ||
name: 'Publish' | ||
inputs: | ||
connectTo: 'VsTeam' | ||
connectedServiceName: 'Marketplace' | ||
fileType: 'vsix' | ||
vsixFile: '$(Pipeline.Workspace)/vsix/$(extensionFileName)' | ||
publisherId: $(publisher) | ||
extensionId: $(extensionId) | ||
extensionName: $(extensionName) - DEV | ||
extensionTag: '-dev' | ||
updateTasksVersion: true | ||
extensionVisibility: 'privatepreview' | ||
shareWith: $(shareWith) | ||
extensionVersion: '$(Build.BuildNumber)' | ||
|
||
- stage: Production | ||
displayName: 'Publish to Marketplace (Public)' | ||
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master')) | ||
dependsOn: 'Test' | ||
jobs: | ||
- deployment: | ||
environment: Production | ||
strategy: | ||
runOnce: | ||
deploy: | ||
steps: | ||
- task: TfxInstaller@3 | ||
displayName: 'Use Node CLI for Azure DevOps' | ||
inputs: | ||
version: '0.9.x' | ||
checkLatest: true | ||
|
||
- task: PublishAzureDevOpsExtension@3 | ||
name: 'Publish' | ||
inputs: | ||
connectTo: 'VsTeam' | ||
connectedServiceName: 'Marketplace' | ||
fileType: 'vsix' | ||
vsixFile: '$(Pipeline.Workspace)/vsix/$(extensionFileName)' | ||
publisherId: $(publisher) | ||
extensionId: $(extensionId) | ||
extensionName: $(extensionName) | ||
extensionVersion: '$(Build.BuildNumber)' | ||
updateTasksVersion: true | ||
extensionVisibility: 'public' | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not opposed to switching away from the classic pipelines, however I might need to work through this configuration with you all to make sure I understand how the dev -> prod workflow will work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is quite easy. If you want we can have a zoom call and discuss this ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JoostVoskuil That would be helpful. I'm going to be tied up this week for the most part at a conference, would you be available the next week (12/20) to review?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @ejohn20 I have send you an email ;)