-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Create windows package Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com> * Create windows package Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com> --------- Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
- Loading branch information
Showing
12 changed files
with
94 additions
and
19 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
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 |
---|---|---|
|
@@ -2,3 +2,4 @@ goversion/ | |
trivy/ | ||
cargo-auditable/ | ||
osquery/ | ||
dosai/ |
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 |
---|---|---|
|
@@ -2,3 +2,4 @@ goversion/ | |
trivy/ | ||
cargo-auditable/ | ||
osquery/ | ||
dosai/ |
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,25 @@ | ||
#!/usr/bin/env bash | ||
|
||
rm -rf plugins/goversion | ||
rm -rf plugins/trivy | ||
rm -rf plugins/cargo-auditable | ||
rm -rf plugins/osquery | ||
rm -rf plugins/dosai | ||
mkdir -p plugins/osquery plugins/dosai | ||
|
||
wget https://github.com/osquery/osquery/releases/download/5.10.2/osquery-5.10.2.windows_x86_64.zip | ||
unzip osquery-5.10.2.windows_x86_64.zip | ||
cp "osquery-5.10.2.windows_x86_64/Program Files/osquery/osqueryi.exe" plugins/osquery/osqueryi-windows-amd64.exe | ||
upx -9 --lzma plugins/osquery/osqueryi-windows-amd64.exe | ||
sha256sum plugins/osquery/osqueryi-windows-amd64.exe > plugins/osquery/osqueryi-windows-amd64.exe.sha256 | ||
rm -rf osquery-5.10.2.windows_x86_64 | ||
rm osquery-5.10.2.windows_x86_64.zip | ||
|
||
curl -L https://github.com/owasp-dep-scan/dosai/releases/latest/download/Dosai.exe -o plugins/dosai/dosai-windows-amd64.exe | ||
sha256sum plugins/dosai/dosai-windows-amd64.exe > plugins/dosai/dosai-windows-amd64.exe.sha256 | ||
|
||
for plug in goversion trivy cargo-auditable | ||
do | ||
mkdir -p plugins/$plug | ||
mv ../../plugins/$plug/*.exe* plugins/$plug/ | ||
done |
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,8 @@ | ||
// Debug mode flag | ||
const DEBUG_MODE = | ||
process.env.CDXGEN_DEBUG_MODE === "debug" || | ||
process.env.NODE_ENV === "development"; | ||
|
||
if (DEBUG_MODE) { | ||
console.log("cdxgen plugins check"); | ||
} |
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,34 @@ | ||
{ | ||
"name": "@cyclonedx/cdxgen-plugins-bin-windows-amd64", | ||
"version": "1.5.3", | ||
"description": "Windows amd64 binary plugins to supercharge @cyclonedx/cdxgen npm package", | ||
"main": "index.js", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/cyclonedx/cdxgen-plugins-bin.git" | ||
}, | ||
"keywords": [ | ||
"cdxgen", | ||
"sbom", | ||
"bom", | ||
"plugins", | ||
"dependency", | ||
"appsec" | ||
], | ||
"author": "Prabhu Subramanian <prabhu@appthreat.com>", | ||
"license": "Apache-2.0", | ||
"bugs": { | ||
"url": "https://github.com/cyclonedx/cdxgen-plugins-bin/issues" | ||
}, | ||
"homepage": "https://github.com/cyclonedx/cdxgen-plugins-bin#readme", | ||
"files": [ | ||
"*.js", | ||
"plugins/" | ||
], | ||
"os": [ | ||
"win32" | ||
], | ||
"cpu": [ | ||
"x64" | ||
] | ||
} |
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,5 @@ | ||
goversion/ | ||
trivy/ | ||
cargo-auditable/ | ||
osquery/ | ||
dosai/ |
Empty file.
Empty file.
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 |
---|---|---|
|
@@ -2,3 +2,4 @@ goversion/ | |
trivy/ | ||
cargo-auditable/ | ||
osquery/ | ||
dosai/ |