Skip to content

[ci] Add exclusions for PoliCheck and CredScan#2389

Merged
Redth merged 9 commits into
mainfrom
dev/pjc/poli-exclude
Feb 17, 2023
Merged

[ci] Add exclusions for PoliCheck and CredScan#2389
Redth merged 9 commits into
mainfrom
dev/pjc/poli-exclude

Conversation

@pjcollins
Copy link
Copy Markdown
Collaborator

@pjcollins pjcollins commented Feb 16, 2023

Adds a exclusion files for CredScan and PoliCheck to ignore third party
sources and a mathematical term used as a variable name in number of
places. The versions of the compliance and reporting tasks used have
also been updated.

The new source.gdnsuppress file is used to exclude specific terms from
PoliCheck, as the PoliCheckExclusions.xml file does not allow very
granular control. This file is generated and uploaded by the build, and
the generated file can be used to update the in-tree file to exclude
more terms in the future as needed.

Adds an exclusions file for policheck to allow it to ignore the sources
in the `third_party` folder that we do not own.
@pjcollins
Copy link
Copy Markdown
Collaborator Author

pjcollins commented Feb 16, 2023

This cuts the issue set down dramatically (from PoliCheck failed with 2617 issues found to PoliCheck failed with 112 issues found), but there are still some components we will want to try to address.

Latest failing run from main: https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=7141188&view=logs&j=20168050-bfe6-5e92-c15c-a5eae27a73d9&t=dc840bab-140a-508c-d5e2-ec42cf763889&l=2674

@pjcollins pjcollins changed the title [ci] Add PoliCheckExclusions.xml [ci] Add exclusions for PoliCheck and CredScan Feb 16, 2023
@pjcollins pjcollins requested a review from mattleibow February 17, 2023 00:32
@pjcollins
Copy link
Copy Markdown
Collaborator Author

The new versions of the tools have uncovered some more issues, but we've gone from 2617 down to 169 in the latest run and now have a better starting point to resolve the rest. This should be ready to go.

@pjcollins pjcollins requested a review from Redth February 17, 2023 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants