13 lines
544 B
YAML
13 lines
544 B
YAML
|
parameters:
|
||
|
disableComponentGovernance: false
|
||
|
componentGovernanceIgnoreDirectories: ''
|
||
|
|
||
|
steps:
|
||
|
- ${{ if eq(parameters.disableComponentGovernance, 'true') }}:
|
||
|
- script: "echo ##vso[task.setvariable variable=skipComponentGovernanceDetection]true"
|
||
|
displayName: Set skipComponentGovernanceDetection variable
|
||
|
- ${{ if ne(parameters.disableComponentGovernance, 'true') }}:
|
||
|
- task: ComponentGovernanceComponentDetection@0
|
||
|
continueOnError: true
|
||
|
inputs:
|
||
|
ignoreDirectories: ${{ parameters.componentGovernanceIgnoreDirectories }}
|