2023-04-21 17:19:05 +00:00
|
|
|
parameters:
|
|
|
|
disableComponentGovernance: false
|
|
|
|
componentGovernanceIgnoreDirectories: ''
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- ${{ if eq(parameters.disableComponentGovernance, 'true') }}:
|
2024-04-10 17:50:12 +00:00
|
|
|
- script: echo "##vso[task.setvariable variable=skipComponentGovernanceDetection]true"
|
2023-04-21 17:19:05 +00:00
|
|
|
displayName: Set skipComponentGovernanceDetection variable
|
|
|
|
- ${{ if ne(parameters.disableComponentGovernance, 'true') }}:
|
|
|
|
- task: ComponentGovernanceComponentDetection@0
|
|
|
|
continueOnError: true
|
|
|
|
inputs:
|
|
|
|
ignoreDirectories: ${{ parameters.componentGovernanceIgnoreDirectories }}
|