Skip to content

Commit 1dd9567

Browse files
Exclude reference packages from CG (#1134) (#1136)
1 parent f896ca2 commit 1dd9567

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

README.md

+3-7
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,9 @@ targeting pack is needed, please [open a new issue](#filing-issues) to discuss.
8080

8181
## Vulnerable Packages
8282

83-
CVEs may exist for reference packages included in this repo. If they are mitigated by a newer version, the newer version should be added, the vulnerable version should be removed, and references to the vulnerable package within other reference
84-
packages should be upgraded. A comment should be added to indicate when packages were manually upgraded.
85-
86-
``` xml
87-
<!-- Manually updated version from 4.3.0 to address CVE-2017-0247 -->
88-
<PackageReference Include="System.Net.Security" Version="4.3.1" />
89-
```
83+
CVEs may exist for reference packages included in this repo. Because the packages do not contain any
84+
implementation, they do not pose a security risk. CG is configured in this repo to ignore the reference
85+
packages. If product repos migrate off these vulnerable packages, they can be [removed](#cleanup).
9086

9187
## Filing Issues
9288

azure-pipelines/builds/ci.yml

+6
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ extends:
2525
template: azure-pipelines/MicroBuild.1ES.Official.yml@MicroBuildTemplate
2626
parameters:
2727
sdl:
28+
componentgovernance:
29+
# All of the SBRPs must be ignored because it is possible some of them are for vulnerable versions.
30+
# Because they are reference only packages they are not vulnerable themselves.
31+
ignoreDirectories: |
32+
artifacts/sb,
33+
src/referencePackages
2834
sourceAnalysisPool:
2935
name: $(DncEngInternalBuildPool)
3036
image: 1es-windows-2022

0 commit comments

Comments
 (0)