-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Trivy): [TELFE-382] issue and tests
- Loading branch information
ACoolmanTelicent
committed
Jul 3, 2024
1 parent
8f1ef32
commit 99b929c
Showing
9 changed files
with
53 additions
and
197 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -131,4 +131,6 @@ yarn-error.log* | |
__image_snapshots__ | ||
|
||
# VSCode | ||
.vscode | ||
.vscode | ||
|
||
*.gitignored.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
yarn test:diff | ||
yarn test:diff | ||
./scripts/test-vuln.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
|
||
npx @cyclonedx/cyclonedx-npm \ | ||
--ignore-npm-errors \ | ||
--output-file .test-vuln.sbom.gitignored.json \ | ||
&& \ | ||
trivy sbom \ | ||
--format table \ | ||
--exit-code 0 \ | ||
--ignore-unfixed \ | ||
--scanners vuln \ | ||
--severity HIGH,CRITICAL \ | ||
.test-vuln.sbom.gitignored.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
window._env_ = { | ||
PARALOG_API_URL: "http://localhost:5051", | ||
MAP_TILER_TOKEN: "test_key", | ||
MAP_URL: "http://map.com", | ||
ONTOLOGY_SERVICE_URL: "http://localhost:3030", | ||
}; | ||
// Mock the window object with the necessary environment variables | ||
global.window = Object.create(window); | ||
global.window.MAP_TILER_TOKEN = 'mock-token'; | ||
// global.window.PARALOG_API_URL = "http://localhost:4001"; | ||
global.window.ONTOLOGY_SERVICE_URL = "http://localhost:3030"; |
Oops, something went wrong.