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 }}