generated from oracle/template-repo
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: find SLSA provenance v0.2 published on npm registry
Signed-off-by: behnazh-w <[email protected]>
- Loading branch information
Showing
16 changed files
with
1,056 additions
and
94 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
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 |
---|---|---|
|
@@ -38,6 +38,13 @@ function check_or_update_expected_output() { | |
fi | ||
} | ||
|
||
# Check if npm-related tests should be disabled. | ||
if [[ ! -z "$NO_NPM" ]]; then | ||
echo "Note: NO_NPM environment variable is set, so npm tests will be skipped." | ||
fi | ||
NO_NPM_TEST=$NO_NPM | ||
|
||
|
||
function log_fail() { | ||
printf "Error: FAILED integration test (line ${BASH_LINENO}) %s\n" $@ | ||
RESULT_CODE=1 | ||
|
@@ -66,6 +73,17 @@ $RUN_MACARON analyze -rp https://github.com/micronaut-projects/micronaut-core -b | |
|
||
check_or_update_expected_output $COMPARE_JSON_OUT $JSON_RESULT $JSON_EXPECTED || log_fail | ||
|
||
if [[ -z "$NO_NPM_TEST" ]]; then | ||
echo -e "\n----------------------------------------------------------------------------------" | ||
echo "sigstore/[email protected]: Analyzing the PURL when automatic dependency resolution is skipped." | ||
echo -e "----------------------------------------------------------------------------------\n" | ||
JSON_EXPECTED=$WORKSPACE/tests/e2e/expected_results/purl/npm/sigstore/mock/mock.json | ||
JSON_RESULT=$WORKSPACE/output/reports/npm/_sigstore/mock/mock.json | ||
$RUN_MACARON analyze -purl pkg:npm/@sigstore/[email protected] --skip-deps || log_fail | ||
|
||
check_or_update_expected_output $COMPARE_JSON_OUT $JSON_RESULT $JSON_EXPECTED || log_fail | ||
fi | ||
|
||
echo -e "\n----------------------------------------------------------------------------------" | ||
echo "gitlab.com/tinyMediaManager/tinyMediaManager: Analyzing the repo path and the branch name when automatic dependency resolution is skipped." | ||
echo -e "----------------------------------------------------------------------------------\n" | ||
|
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
Oops, something went wrong.