-
-
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.
Signed-off-by: Prabhu Subramanian <[email protected]>
- Loading branch information
Showing
31 changed files
with
230 additions
and
81 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/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 | ||
|
||
curl -L https://github.com/owasp-dep-scan/dosai/releases/latest/download/Dosai -o plugins/dosai/dosai-darwin-arm64 | ||
chmod +x plugins/dosai/dosai-darwin-arm64 | ||
sha256sum plugins/dosai/dosai-darwin-arm64 > plugins/dosai/dosai-darwin-arm64.sha256 | ||
|
||
for plug in goversion trivy cargo-auditable | ||
do | ||
mkdir -p plugins/$plug | ||
mv ../../plugins/$plug/*darwin-arm64* plugins/$plug/ | ||
done |
File renamed without changes.
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-darwin-arm64", | ||
"version": "1.5.5", | ||
"description": "Arm64 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 <[email protected]>", | ||
"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": [ | ||
"darwin" | ||
], | ||
"cpu": [ | ||
"arm64" | ||
] | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,26 @@ | ||
#!/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.11.0/osquery-5.11.0_1.linux_aarch64.tar.gz | ||
tar -xvf osquery-5.11.0_1.linux_aarch64.tar.gz | ||
cp opt/osquery/bin/osqueryd plugins/osquery/osqueryi-linux-arm64 | ||
upx -9 --lzma plugins/osquery/osqueryi-linux-arm64 | ||
sha256sum plugins/osquery/osqueryi-linux-arm64 > plugins/osquery/osqueryi-linux-arm64.sha256 | ||
rm -rf etc usr var opt | ||
rm osquery-5.11.0_1.linux_aarch64.tar.gz | ||
|
||
curl -L https://github.com/owasp-dep-scan/dosai/releases/latest/download/Dosai-linux-arm64 -o plugins/dosai/dosai-linux-arm64 | ||
chmod +x plugins/dosai/dosai-linux-arm64 | ||
sha256sum plugins/dosai/dosai-linux-arm64 > plugins/dosai/dosai-linux-arm64.sha256 | ||
|
||
for plug in goversion trivy cargo-auditable | ||
do | ||
mkdir -p plugins/$plug | ||
mv ../../plugins/$plug/*linux-arm64* 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
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
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/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.11.0/osquery-5.11.0.windows_arm64.zip | ||
unzip osquery-5.11.0.windows_arm64.zip | ||
cp "osquery-5.11.0.windows_arm64/Program Files/osquery/osqueryi.exe" plugins/osquery/osqueryi-windows-arm64.exe | ||
sha256sum plugins/osquery/osqueryi-windows-arm64.exe > plugins/osquery/osqueryi-windows-arm64.exe.sha256 | ||
rm -rf osquery-5.11.0.windows_arm64 | ||
rm osquery-5.11.0.windows_arm64.zip | ||
|
||
curl -L https://github.com/owasp-dep-scan/dosai/releases/latest/download/Dosai-windows-arm64.exe -o plugins/dosai/dosai-windows-arm64.exe | ||
sha256sum plugins/dosai/dosai-windows-arm64.exe > plugins/dosai/dosai-windows-arm64.exe.sha256 | ||
|
||
for plug in goversion trivy cargo-auditable | ||
do | ||
mkdir -p plugins/$plug | ||
mv ../../plugins/$plug/*windows-arm64* plugins/$plug/ | ||
done |
Oops, something went wrong.