Skip to content

Commit cd49c50

Browse files
authored
remove the large list of everchanging deps from the python scans (#1381)
1 parent 392d20c commit cd49c50

File tree

4 files changed

+41
-38
lines changed

4 files changed

+41
-38
lines changed

.github/workflows/snapshot-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
run:
5757
dotnet run scan --Verbosity Verbose --SourceDirectory ${{ github.workspace }}/test/Microsoft.ComponentDetection.VerificationTests/resources --Output ${{ github.workspace }}/output
5858
--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
59+
--DetectorArgs DockerReference=EnableIfDefaultOff,SPDX22SBOM=EnableIfDefaultOff --DirectoryExclusionList "**/pip/parallel/**;**/pip/roots/**;**/pip/pre-generated/**"
6060

6161
- name: Upload output folder
6262
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3

.github/workflows/snapshot-verify.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ jobs:
9090
run:
9191
dotnet run scan --Verbosity Verbose --SourceDirectory ${{ github.workspace }}/test/Microsoft.ComponentDetection.VerificationTests/resources --Output ${{ github.workspace }}/output
9292
--DockerImagesToScan "docker.io/library/debian@sha256:9b0e3056b8cd8630271825665a0613cc27829d6a24906dc0122b3b4834312f7d,mcr.microsoft.com/cbl-mariner/base/core@sha256:c1bc83a3d385eccbb2f7f7da43a726c697e22a996f693a407c35ac7b4387cd59,docker.io/library/alpine@sha256:1304f174557314a7ed9eddb4eab12fed12cb0cd9809e4c28f29af86979a3c870"
93-
--DetectorArgs DockerReference=EnableIfDefaultOff,SPDX22SBOM=EnableIfDefaultOff --MaxDetectionThreads 5
93+
--DetectorArgs DockerReference=EnableIfDefaultOff,SPDX22SBOM=EnableIfDefaultOff --MaxDetectionThreads 5 --DirectoryExclusionList "**/pip/parallel/**;**/pip/roots/**;**/pip/pre-generated/**"
9494

9595
- name: Run Verification Tests
9696
working-directory: test/Microsoft.ComponentDetection.VerificationTests

test/Microsoft.ComponentDetection.VerificationTests/resources/VerificationTest.ps1

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,17 @@ function main()
4242
dotnet run scan --SourceDirectory $verificationTestRepo --Output $output `
4343
--DockerImagesToScan $dockerImagesToScan `
4444
--DetectorArgs DockerReference=EnableIfDefaultOff,SPDX22SBOM=EnableIfDefaultOff,CondaLock=EnableIfDefaultOff,ConanLock=EnableIfDefaultOff `
45-
--MaxDetectionThreads 5 --DebugTelemetry
45+
--MaxDetectionThreads 5 --DebugTelemetry `
46+
--DirectoryExclusionList "**/pip/parallel/**;**/pip/roots/**;**/pip/pre-generated/**"
4647

4748
Set-Location $CDRelease
4849
dotnet restore
4950
Set-Location ($CDRelease + "\src\Microsoft.ComponentDetection")
5051
dotnet run scan --SourceDirectory $verificationTestRepo --Output $releaseOutput `
5152
--DockerImagesToScan $dockerImagesToScan `
5253
--DetectorArgs DockerReference=EnableIfDefaultOff,SPDX22SBOM=EnableIfDefaultOff,CondaLock=EnableIfDefaultOff,ConanLock=EnableIfDefaultOff `
53-
--MaxDetectionThreads 5 --DebugTelemetry
54+
--MaxDetectionThreads 5 --DebugTelemetry `
55+
--DirectoryExclusionList "**/pip/parallel/**;**/pip/roots/**;**/pip/pre-generated/**"
5456

5557
$env:GITHUB_OLD_ARTIFACTS_DIR = $releaseOutput
5658
$env:GITHUB_NEW_ARTIFACTS_DIR = $output
Lines changed: 35 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,37 @@
1-
absl-py==0.10.0
1+
absl-py==2.2.2
22
astunparse==1.6.3
3-
cachetools==4.1.1
4-
certifi==2020.6.20
5-
chardet==3.0.4
6-
configparser==5.0.0
7-
gast==0.3.3
8-
google-auth==1.21.3
9-
google-auth-oauthlib==0.4.1
3+
certifi==2025.1.31
4+
charset-normalizer==3.4.1
5+
flatbuffers==25.2.10
6+
gast==0.6.0
107
google-pasta==0.2.0
11-
grpcio==1.32.0
12-
h5py==2.10.0
13-
idna==2.10
14-
importlib-metadata==2.0.0
15-
Keras-Preprocessing==1.1.2
16-
Markdown==3.2.2
17-
numpy==1.18.5
18-
oauthlib==3.1.0
19-
opt-einsum==3.3.0
20-
protobuf==3.13.0
21-
pyasn1==0.4.8
22-
pyasn1-modules==0.2.8
23-
requests==2.24.0
24-
requests-oauthlib==1.3.0
25-
rsa==4.6
26-
scipy==1.4.1
27-
six==1.15.0
28-
tensorboard==2.3.0
29-
tensorboard-plugin-wit==1.7.0
30-
tensorflow==2.3.0
31-
tensorflow-estimator==2.3.0
32-
termcolor==1.1.0
33-
urllib3==1.25.10
34-
Werkzeug==1.0.1
35-
wrapt==1.12.1
36-
zipp==3.2.0
8+
grpcio==1.71.0
9+
h5py==3.13.0
10+
idna==3.10
11+
keras==3.9.2
12+
libclang==18.1.1
13+
Markdown==3.7
14+
markdown-it-py==3.0.0
15+
MarkupSafe==3.0.2
16+
mdurl==0.1.2
17+
ml_dtypes==0.5.1
18+
namex==0.0.8
19+
numpy==2.1.3
20+
opt_einsum==3.4.0
21+
optree==0.14.1
22+
packaging==24.2
23+
protobuf==5.29.4
24+
Pygments==2.19.1
25+
requests==2.32.3
26+
rich==14.0.0
27+
setuptools==78.1.0
28+
six==1.17.0
29+
tensorboard==2.19.0
30+
tensorboard-data-server==0.7.2
31+
tensorflow==2.19.0
32+
termcolor==3.0.1
33+
typing_extensions==4.13.1
34+
urllib3==2.3.0
35+
Werkzeug==3.1.3
36+
wheel==0.45.1
37+
wrapt==1.17.2

0 commit comments

Comments
 (0)