Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: suppress false positive scan results #45

Merged
merged 1 commit into from
Feb 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ tsconfig.json
webpack.config.js
pipeline.yml
*.tgz
CredScanSuppressions.json
8 changes: 0 additions & 8 deletions .travis.yml

This file was deleted.

11 changes: 11 additions & 0 deletions CredScanSuppressions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"tool": "Credential Scanner",
"suppressions": [
{
"file": [
"test/uri.test.ts"
],
"_justification": "These are all test paths."
}
]
}
5 changes: 3 additions & 2 deletions pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ parameters:
extends:
template: azure-pipelines/npm-package/pipeline.yml@templates
parameters:
credscanSuppressionsFile: $(Build.SourcesDirectory)/CredScanSuppressions.json
npmPackages:
- name: vscode-uri

Expand All @@ -40,7 +41,7 @@ extends:
testPlatforms:
- name: Linux
nodeVersions:
- 16.x
- 20.x

testSteps:
- script: yarn --frozen-lockfile
Expand All @@ -58,6 +59,6 @@ extends:
- script: yarn test
displayName: Test npm package
env:
DISPLAY: ':99.0'
DISPLAY: ":99.0"

publishPackage: ${{ parameters.publishPackage }}