Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Compliance task library

**Contents of this repository are intended for internal Microsoft use.**
**Contents of this repository are intended for use in internal Microsoft Pipelines.
This repository is public so the community can inspect our process and for sharing among teams.**

This repository contains Azure DevOPS YAML template for the compliance tasks needed for release products.
The step templates can be included in the repository using [multi-checkout](https://docs.microsoft.com/en-us/azure/devops/pipelines/repos/multi-repo-checkout?view=azure-devops).
Expand Down Expand Up @@ -154,7 +155,7 @@ Details can be found in the PowerShell Maintainers teams channel's Wiki tab.
# If "true", use a custom JSON string for ESRP signing. Defaults to "false".
useCustomEsrpJson: false
# If "true", ESRP will automatically verify your files are signed properly (eg signtool /verify).
# Only supported for authenticode & nuget signing.
# Only supported for authenticode & nuget signing.
# Defaults to "false".
verifySignature: false
# If "true", ESRP will page hash sign your files.
Expand Down Expand Up @@ -364,3 +365,15 @@ This example uses a custom ESRP malware scanning (Azure DevOps) service name.
scanningService: 'FactoryOrchestratorScanning'

```

### Daily build Compliance template

This example add the template for a daily build.
It will automatically skip for PRs.
It should be put near the end of the job.

```yaml
- template: dailyBuildCompliance.yml@ComplianceRepo
parameters:
sourceScanPath: '$(repoPath)'
```
14 changes: 14 additions & 0 deletions dailyBuildCompliance.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
parameters:
- name: sourceScanPath
default: $(Build.SourcesDirectory)

steps:
- ${{ if ne(variables['Build.Reason'], 'PullRequest') }}:
- template: template-compliance/component-governance.yml
parameters:
sourceScanPath: '${{ parameters.sourceScanPath }}'

- ${{ if ne(variables['Build.Reason'], 'PullRequest') }}:
- powershell: Write-Host "##vso[build.updatebuildnumber]$env:BUILD_SOURCEBRANCHNAME-$env:BUILD_SOURCEVERSION-$((get-date).ToString("yyyyMMddhhmmss"))"
displayName: Set Build Name for Non-PR
condition: ne(variables['Build.Reason'], 'PullRequest')