Mark detectors as public (#1707) #975
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish snapshot of test scan | |
| env: | |
| CD_DETECTOR_EXPERIMENTS: 1 | |
| PipReportSkipFallbackOnFailure: "true" | |
| PIP_INDEX_URL: "https://pypi.python.org/simple" | |
| on: | |
| push: | |
| branches: | |
| - main | |
| schedule: | |
| # GitHub cron schedules run in UTC; this runs at 06:00 UTC, Monday–Friday. | |
| - cron: '0 6 * * 1-5' | |
| workflow_dispatch: | |
| concurrency: | |
| group: snapshot-publish | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@58077d3c7e43986b6b15fba718e8ea69e387dfcc # v2.15.1 | |
| with: | |
| egress-policy: audit | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - name: Setup .NET Core | |
| uses: actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 # v5.2.0 | |
| - run: dotnet restore | |
| - name: Setup Python | |
| uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6 | |
| with: | |
| python-version: "3.14" | |
| - name: Install Apache Ivy | |
| if: ${{ matrix.os == 'ubuntu-latest' }} | |
| run: curl https://downloads.apache.org/ant/ivy/2.5.2/apache-ivy-2.5.2-bin.tar.gz | tar xOz apache-ivy-2.5.2/ivy-2.5.2.jar > /usr/share/ant/lib/ivy.jar | |
| - name: Install Apache Ivy | |
| if: ${{ matrix.os == 'windows-latest' }} | |
| shell: bash | |
| run: curl https://downloads.apache.org/ant/ivy/2.5.2/apache-ivy-2.5.2-bin.tar.gz | tar xOz apache-ivy-2.5.2/ivy-2.5.2.jar > "$ANT_HOME/lib/ivy.jar" | |
| - name: Install Apache Ivy | |
| if: ${{ matrix.os == 'macos-latest' }} | |
| run: brew install ivy | |
| - name: Make output directory | |
| run: mkdir ${{ github.workspace }}/output | |
| - name: Scan verification repo | |
| working-directory: src/Microsoft.ComponentDetection | |
| run: | |
| dotnet run scan --Verbosity Verbose --SourceDirectory ${{ github.workspace }}/test/Microsoft.ComponentDetection.VerificationTests/resources --Output ${{ github.workspace }}/output | |
| --DockerImagesToScan "docker.io/library/debian@sha256:9b0e3056b8cd8630271825665a0613cc27829d6a24906dc0122b3b4834312f7d,mcr.microsoft.com/cbl-mariner/base/core@sha256:c1bc83a3d385eccbb2f7f7da43a726c697e22a996f693a407c35ac7b4387cd59,docker.io/library/alpine@sha256:1304f174557314a7ed9eddb4eab12fed12cb0cd9809e4c28f29af86979a3c870" | |
| --DetectorArgs DockerReference=EnableIfDefaultOff,SPDX22SBOM=EnableIfDefaultOff --DirectoryExclusionList "**/pip/parallel/**;**/pip/roots/**;**/pip/pre-generated/**;**/pip/fallback/**;**/pip/index-removal/**;**/pip/simple-extras/**;**/pip/pytestresultpkg/**" | |
| - name: Upload output folder | |
| uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 | |
| with: | |
| name: release-snapshot-output-${{ matrix.os }} | |
| path: ${{ github.workspace }}/output |