-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
50 additions
and
40 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -8,26 +8,26 @@ snyk auth | |
git clone https://github.com/0GiS0/tour-of-heroes-angular.git && cd tour-of-heroes-angular | ||
npm install | ||
|
||
cdxgen -o bom.json | ||
cdxgen -o bom.1.4.json --spec-version 1.4 | ||
|
||
|
||
# Trying API REST | ||
curl https://reimagined-xylophone-vp9qqwj64fx67w-8080.app.github.dev/api/version -w '%{response_code}' | ||
curl http://localhost:8080/api/version -w '%{response_code}' | ||
|
||
curl -X "PUT" "https://reimagined-xylophone-vp9qqwj64fx67w-8080.app.github.dev/api/v1/bom" \ | ||
curl -X "PUT" "http://localhost:8080/api/v1/bom" \ | ||
-H 'Content-Type: multipart/form-data' \ | ||
-H 'X-Api-Key: BgCIvb2ZuIEiuaZBiOZ5JhmQdD8I4Iop' \ | ||
-F 'project=00ca1b30-3746-4da1-abae-f0b45a6d9906' \ | ||
-F '[email protected]' \ | ||
-w '%{response_code}' | ||
|
||
curl -X "POST" "https://reimagined-xylophone-vp9qqwj64fx67w-8080.app.github.dev/api/v1/bom" \ | ||
|
||
|
||
curl -X "PUT" "http://localhost:8080/api/v1/bom" \ | ||
-H 'Content-Type: multipart/form-data' \ | ||
-H "X-Api-Key: BgCIvb2ZuIEiuaZBiOZ5JhmQdD8I4Iop" \ | ||
-F "autoCreate=true" \ | ||
-F "projectName=tour-of-heroes-test" \ | ||
-F "projectVersion=1.0.0" \ | ||
-F "[email protected]" \ | ||
-H 'X-Api-Key: BgCIvb2ZuIEiuaZBiOZ5JhmQdD8I4Iop' \ | ||
-F 'project=81d1c70e-5527-4d1d-bdd0-15d6120badcb' \ | ||
-F '[email protected]' \ | ||
-w '%{response_code}' | ||
|
||
|
||
|
@@ -36,11 +36,36 @@ curl -X "POST" "https://reimagined-xylophone-vp9qqwj64fx67w-8080.app.github.dev/ | |
git clone https://github.com/0GiS0/tour-of-heroes-dotnet-api.git && cd tour-of-heroes-dotnet-api | ||
dotnet build | ||
|
||
spdx-sbom-generator --format json | ||
# npm install -g @cyclonedx/cdxgen | ||
export FETCH_LICENSE=true | ||
cdxgen -o bom-with-license.json --spec-version 1.4 | ||
|
||
curl -X "PUT" "https://reimagined-xylophone-vp9qqwj64fx67w-8081.app.github.dev/api/v1/bom" \ | ||
curl -X "POST" "http://localhost:8080/api/v1/bom" \ | ||
-H 'Content-Type: multipart/form-data' \ | ||
-H 'X-Api-Key: BgCIvb2ZuIEiuaZBiOZ5JhmQdD8I4Iop' \ | ||
-F 'project=81d1c70e-5527-4d1d-bdd0-15d6120badcb' \ | ||
-F '[email protected]' \ | ||
-w '%{response_code}' | ||
-H "X-Api-Key: QN0pNzIFxraSqO4U97kvLsFoCv8zfHR8" \ | ||
-F "autoCreate=true" \ | ||
-F "projectName=tour-of-heroes-test" \ | ||
-F "projectVersion=1.0.0" \ | ||
-F "[email protected]" \ | ||
-w '%{response_code}' | ||
|
||
# Test license | ||
git clone https://github.com/dephell/dephell.git && cd dephell | ||
cdxgen -o bom.1.4.json --spec-version 1.4 | ||
|
||
curl -X "POST" "http://localhost:8080/api/v1/bom" \ | ||
-H 'Content-Type: multipart/form-data' \ | ||
-H "X-Api-Key: QN0pNzIFxraSqO4U97kvLsFoCv8zfHR8" \ | ||
-F "autoCreate=true" \ | ||
-F "projectName=dephell-test" \ | ||
-F "projectVersion=1.0.0" \ | ||
-F "[email protected]" \ | ||
-w '%{response_code}' | ||
|
||
|
||
# FOSSA | ||
# Install fossa-cli | ||
curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install-latest.sh | bash | ||
export FOSSA_API_KEY='YOUR_API_KEY' | ||
# Run an analysis | ||
fossa analyze |
Submodule tour-of-heroes-angular
deleted from
58aa38
Submodule tour-of-heroes-dotnet-api
deleted from
9b8a5e