Skip to content

Commit 6edfd93

Browse files
authored
Add go cli native scanning for component governance (Azure#17655)
1 parent 29ac915 commit 6edfd93

File tree

2 files changed

+17
-6
lines changed

2 files changed

+17
-6
lines changed

azure-pipelines.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,19 @@ jobs:
2929
name: $(pool.name)
3030

3131
variables:
32-
GOPATH: '$(system.defaultWorkingDirectory)/work'
33-
sdkPath: '$(GOPATH)/src/github.com/$(build.repository.name)'
34-
GO111MODULE: 'off'
35-
IGNORE_BREAKING_CHANGES: true
36-
go.list.filter: 'profiles services storage'
37-
go.test.filter: '-path ./vendor -prune -o -path ./sdk -prune -o -path ./eng -prune -o'
32+
- template: ../variables/globals.yml
33+
- name: GOPATH
34+
value: '$(system.defaultWorkingDirectory)/work'
35+
- name: sdkPath
36+
value: '$(GOPATH)/src/github.com/$(build.repository.name)'
37+
- name: GO111MODULE
38+
value: 'off'
39+
- name: IGNORE_BREAKING_CHANGES
40+
value: 'true'
41+
- name: go.list.filter
42+
value: 'profiles services storage'
43+
- name: go.test.filter
44+
value: '-path ./vendor -prune -o -path ./sdk -prune -o -path ./eng -prune -o'
3845

3946
steps:
4047
- task: GoTool@0
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
variables:
22
GoLintCLIVersion: 'v1.45.2'
33
Package.EnableSBOMSigning: true
4+
# Enable go native component governance detection
5+
# https://docs.opensource.microsoft.com/tools/cg/index.html
6+
# https://github.com/microsoft/component-detection/blob/main/src/Microsoft.ComponentDetection.Detectors/go/GoComponentDetector.cs
7+
EnableGoCliScan: true

0 commit comments

Comments
 (0)