Skip to content

Commit d968c32

Browse files
authored
ci: enable detector experiments (#689)
1 parent 260487e commit d968c32

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

.github/workflows/smoke-test.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
name: Smoke Tests
22

3+
env:
4+
CD_DETECTOR_EXPERIMENTS: 1
5+
36
on:
47
push:
5-
branches:
8+
branches:
69
- main
710
pull_request:
811
schedule:
@@ -52,7 +55,7 @@ jobs:
5255
with:
5356
repository: ${{ matrix.language.repo }}
5457
path: smoke-test-repo
55-
58+
5659
- name: Restore Smoke Test NuGet Packages
5760
if: ${{ matrix.language.name == 'NuGet'}}
5861
working-directory: smoke-test-repo/src

.github/workflows/snapshot-publish.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Publish snapshot of test scan
22

3+
env:
4+
CD_DETECTOR_EXPERIMENTS: 1
5+
36
on:
47
push:
58
branches:
@@ -50,9 +53,10 @@ jobs:
5053

5154
- name: Scan verification repo
5255
working-directory: src/Microsoft.ComponentDetection
53-
run: dotnet run scan --Verbosity Verbose --SourceDirectory ${{ github.workspace }}/test/Microsoft.ComponentDetection.VerificationTests/resources --Output ${{ github.workspace }}/output
54-
--DockerImagesToScan "docker.io/library/debian@sha256:9b0e3056b8cd8630271825665a0613cc27829d6a24906dc0122b3b4834312f7d,mcr.microsoft.com/cbl-mariner/base/core@sha256:c1bc83a3d385eccbb2f7f7da43a726c697e22a996f693a407c35ac7b4387cd59,docker.io/library/alpine@sha256:1304f174557314a7ed9eddb4eab12fed12cb0cd9809e4c28f29af86979a3c870"
55-
--DetectorArgs DockerReference=EnableIfDefaultOff,SPDX22SBOM=EnableIfDefaultOff
56+
run:
57+
dotnet run scan --Verbosity Verbose --SourceDirectory ${{ github.workspace }}/test/Microsoft.ComponentDetection.VerificationTests/resources --Output ${{ github.workspace }}/output
58+
--DockerImagesToScan "docker.io/library/debian@sha256:9b0e3056b8cd8630271825665a0613cc27829d6a24906dc0122b3b4834312f7d,mcr.microsoft.com/cbl-mariner/base/core@sha256:c1bc83a3d385eccbb2f7f7da43a726c697e22a996f693a407c35ac7b4387cd59,docker.io/library/alpine@sha256:1304f174557314a7ed9eddb4eab12fed12cb0cd9809e4c28f29af86979a3c870"
59+
--DetectorArgs DockerReference=EnableIfDefaultOff,SPDX22SBOM=EnableIfDefaultOff
5660

5761
- name: Upload output folder
5862
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3

.github/workflows/snapshot-verify.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Verify snapshot of test scan
22

3+
env:
4+
CD_DETECTOR_EXPERIMENTS: 1
5+
36
on: [pull_request]
47

58
permissions:

0 commit comments

Comments
 (0)