microsoft/onnxruntime-extensions
Publicmirrored fromhttps://github.com/microsoft/onnxruntime-extensionsAvailable
.pipelines/templates/component-governance-component-detection-steps.yml
14lines · modecode
| 1 | # component detection for component governance checks |
| 2 | parameters: |
| 3 | - name: condition |
| 4 | type: string |
| 5 | default: 'succeeded' # could be 'ci_only', 'always', 'succeeded' |
| 6 | |
| 7 | steps: |
| 8 | - ${{ if eq(variables['System.TeamProject'], 'Lotus') }}: |
| 9 | - task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0 |
| 10 | displayName: 'Component Detection' |
| 11 | condition: |
| 12 | or(or(and(eq('${{parameters.condition}}', 'ci_only'), and(succeeded(), in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI', 'Scheduled'))), |
| 13 | and(eq('${{parameters.condition}}', 'always'), always())), |
| 14 | and(eq('${{parameters.condition}}', 'succeeded'), succeeded())) |