2024-03-02 14:00:28 +00:00
|
|
|
parameters:
|
|
|
|
disableComponentGovernance: false
|
|
|
|
componentGovernanceIgnoreDirectories: ''
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- ${{ if eq(parameters.disableComponentGovernance, 'true') }}:
|
2024-04-06 13:05:41 +00:00
|
|
|
- script: echo "##vso[task.setvariable variable=skipComponentGovernanceDetection]true"
|
2024-03-02 14:00:28 +00:00
|
|
|
displayName: Set skipComponentGovernanceDetection variable
|
|
|
|
- ${{ if ne(parameters.disableComponentGovernance, 'true') }}:
|
|
|
|
- task: ComponentGovernanceComponentDetection@0
|
|
|
|
continueOnError: true
|
|
|
|
inputs:
|
|
|
|
ignoreDirectories: ${{ parameters.componentGovernanceIgnoreDirectories }}
|