Skip to content

Commit 32fafff

Browse files
[release/9.0] Exclude reference packages from CG (#1135)
* Exclude reference packages from CG (#1134) * Revert debug setting
1 parent 93a3395 commit 32fafff

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

README.md

+3-9
Original file line numberDiff line numberDiff line change
@@ -98,15 +98,9 @@ a new targeting pack is needed, please [open a new issue](#filing-issues) to dis
9898

9999
## Vulnerable Packages
100100

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

111105
## Filing Issues
112106

azure-pipelines/builds/ci.yml

+8
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@ 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
34+
policheck:
35+
enabled: true
2836
sourceAnalysisPool:
2937
name: $(DncEngInternalBuildPool)
3038
image: 1es-windows-2022

0 commit comments

Comments
 (0)