Skip to content

Commit

Permalink
Add CG Manually to Configure Exclude Dir (#2102)
Browse files Browse the repository at this point in the history
* Add CG Manually to Configure Exclude Dir

Hopefully this will override the 1ES auto injected task because I can't find a way to configure that one. I've also asked them if that's possible.

The .vscode test package.json describes the built-in handlebars extension, not the handlebars npm package that has the vulnerability, so it should be excluded.

CG is auto injected in each task so I had to try adding it to each one.

* Make it only a step

* Edit the 1ES template configuration

* remove the task
  • Loading branch information
nagilson authored Feb 7, 2025
1 parent 56b1833 commit 674f368
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions 1es-azure-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ extends:
exclusionsFile: $(System.DefaultWorkingDirectory)\PoliCheckExclusions.xml
tsa:
enabled: true
componentgovernance:
ignoreDirectories: '.vscode-test/**'
stages:
- stage: Internal
jobs:
Expand Down
2 changes: 1 addition & 1 deletion pipeline-templates/build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ jobs:
condition:
- script: ./test.sh
displayName: 🔎 Test Mac and Linux
env: {DISPLAY: ':99.0'}
env: {DISPLAY: ':99.0'}
2 changes: 1 addition & 1 deletion pipeline-templates/upstream-verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ jobs:
inputs:
scriptSource: 'filePath'
scriptPath: 'dependency-verifier.py'
arguments: '$(System.PullRequest.TargetBranch)'
arguments: '$(System.PullRequest.TargetBranch)'

0 comments on commit 674f368

Please sign in to comment.