Skip to content

Commit

Permalink
Remove cargo auditable (#18)
Browse files Browse the repository at this point in the history
Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
  • Loading branch information
prabhu authored Apr 21, 2024
1 parent 526951b commit 904457c
Show file tree
Hide file tree
Showing 15 changed files with 8 additions and 167 deletions.
4 changes: 1 addition & 3 deletions build-ppc64.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
#!/usr/bin/env bash

rm -rf plugins/trivy
rm -rf plugins/cargo-auditable
rm -rf plugins/osquery
mkdir -p plugins/osquery

for plug in trivy cargo-auditable
for plug in trivy
do
mkdir -p plugins/$plug
pushd thirdparty/$plug
Expand All @@ -17,7 +16,6 @@ do
done

./plugins/trivy/trivy-cdxgen-linux-ppc64le -v
./plugins/cargo-auditable/cargo-auditable-cdxgen-linux-ppc64le

chmod +x packages/ppc64/build-ppc64.sh
pushd packages/ppc64
Expand Down
9 changes: 0 additions & 9 deletions build.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
New-Item -ItemType Directory -Path plugins\cargo-auditable -Force
New-Item -ItemType Directory -Path plugins\osquery -Force
New-Item -ItemType Directory -Path plugins\dosai -Force

Expand All @@ -17,14 +16,6 @@ set CGO_ENABLED=0
set GOOS=windows
set GOARCH=amd64

New-Item -ItemType Directory -Path plugins\cargo-auditable -Force
cd thirdparty\cargo-auditable
go build -ldflags "-H=windowsgui -s -w" -o build\cargo-auditable-windows-amd64.exe
..\..\upx-4.2.2-win64\upx.exe -9 --lzma build\cargo-auditable-windows-amd64.exe
copy build\* ..\..\plugins\cargo-auditable\
Remove-Item build -Recurse -Force
cd ..\..

New-Item -ItemType Directory -Path plugins\trivy -Force
cd thirdparty\trivy
go build -ldflags "-H=windowsgui -s -w" -o build\trivy-windows-amd64.exe
Expand Down
5 changes: 1 addition & 4 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/env bash

rm -rf plugins/trivy
rm -rf plugins/cargo-auditable
rm -rf plugins/osquery
rm -rf plugins/dosai
mkdir -p plugins/osquery plugins/dosai
Expand All @@ -18,7 +17,7 @@ curl -L https://github.com/owasp-dep-scan/dosai/releases/latest/download/Dosai -
chmod +x plugins/dosai/dosai-linux-amd64
sha256sum plugins/dosai/dosai-linux-amd64 > plugins/dosai/dosai-linux-amd64.sha256

for plug in trivy cargo-auditable
for plug in trivy
do
mkdir -p plugins/$plug
pushd thirdparty/$plug
Expand All @@ -32,8 +31,6 @@ done
./plugins/osquery/osqueryi-linux-amd64 --help
upx -9 --lzma ./plugins/trivy/trivy-cdxgen-linux-amd64
./plugins/trivy/trivy-cdxgen-linux-amd64 -v
upx -9 --lzma ./plugins/cargo-auditable/cargo-auditable-cdxgen-linux-amd64
./plugins/cargo-auditable/cargo-auditable-cdxgen-linux-amd64
./plugins/dosai/dosai-linux-amd64 --help

for flavours in windows-amd64 linux-arm64 windows-arm64 darwin-arm64 darwin-amd64 ppc64
Expand Down
3 changes: 1 addition & 2 deletions packages/darwin-amd64/build-darwin-amd64.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/env bash

rm -rf plugins/trivy
rm -rf plugins/cargo-auditable
rm -rf plugins/osquery
rm -rf plugins/dosai
mkdir -p plugins/osquery plugins/dosai
Expand All @@ -16,7 +15,7 @@ curl -L https://github.com/owasp-dep-scan/dosai/releases/latest/download/Dosai-o
chmod +x plugins/dosai/dosai-darwin-amd64
sha256sum plugins/dosai/dosai-darwin-amd64 > plugins/dosai/dosai-darwin-amd64.sha256

for plug in trivy cargo-auditable
for plug in trivy
do
mkdir -p plugins/$plug
mv ../../plugins/$plug/*darwin-amd64* plugins/$plug/
Expand Down
3 changes: 1 addition & 2 deletions packages/darwin-arm64/build-darwin-arm64.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/env bash

rm -rf plugins/trivy
rm -rf plugins/cargo-auditable
rm -rf plugins/osquery
rm -rf plugins/dosai
mkdir -p plugins/osquery plugins/dosai
Expand All @@ -10,7 +9,7 @@ curl -L https://github.com/owasp-dep-scan/dosai/releases/latest/download/Dosai-o
chmod +x plugins/dosai/dosai-darwin-arm64
sha256sum plugins/dosai/dosai-darwin-arm64 > plugins/dosai/dosai-darwin-arm64.sha256

for plug in trivy cargo-auditable
for plug in trivy
do
mkdir -p plugins/$plug
mv ../../plugins/$plug/*darwin-arm64* plugins/$plug/
Expand Down
3 changes: 1 addition & 2 deletions packages/linux-arm64/build-linux-arm64.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/env bash

rm -rf plugins/trivy
rm -rf plugins/cargo-auditable
rm -rf plugins/osquery
rm -rf plugins/dosai
mkdir -p plugins/osquery plugins/dosai
Expand All @@ -18,7 +17,7 @@ curl -L https://github.com/owasp-dep-scan/dosai/releases/latest/download/Dosai-l
chmod +x plugins/dosai/dosai-linux-arm64
sha256sum plugins/dosai/dosai-linux-arm64 > plugins/dosai/dosai-linux-arm64.sha256

for plug in trivy cargo-auditable
for plug in trivy
do
mkdir -p plugins/$plug
mv ../../plugins/$plug/*linux-arm64* plugins/$plug/
Expand Down
3 changes: 1 addition & 2 deletions packages/ppc64/build-ppc64.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
#!/usr/bin/env bash

rm -rf plugins/trivy
rm -rf plugins/cargo-auditable

for plug in trivy cargo-auditable
for plug in trivy
do
mkdir -p plugins/$plug
mv ../../plugins/$plug/*ppc64* plugins/$plug/
Expand Down
3 changes: 1 addition & 2 deletions packages/windows-amd64/build-windows-amd64.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/env bash

rm -rf plugins/trivy
rm -rf plugins/cargo-auditable
rm -rf plugins/osquery
rm -rf plugins/dosai
mkdir -p plugins/osquery plugins/dosai
Expand All @@ -17,7 +16,7 @@ rm osquery-5.11.0.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 trivy cargo-auditable
for plug in trivy
do
mkdir -p plugins/$plug
mv ../../plugins/$plug/*windows-amd64* plugins/$plug/
Expand Down
3 changes: 1 addition & 2 deletions packages/windows-arm64/build-windows-arm64.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/env bash

rm -rf plugins/trivy
rm -rf plugins/cargo-auditable
rm -rf plugins/osquery
rm -rf plugins/dosai
mkdir -p plugins/osquery plugins/dosai
Expand All @@ -16,7 +15,7 @@ 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 trivy cargo-auditable
for plug in trivy
do
mkdir -p plugins/$plug
mv ../../plugins/$plug/*windows-arm64* plugins/$plug/
Expand Down
1 change: 0 additions & 1 deletion thirdparty/cargo-auditable/.gitignore

This file was deleted.

61 changes: 0 additions & 61 deletions thirdparty/cargo-auditable/Makefile

This file was deleted.

3 changes: 0 additions & 3 deletions thirdparty/cargo-auditable/README.md

This file was deleted.

5 changes: 0 additions & 5 deletions thirdparty/cargo-auditable/go.mod

This file was deleted.

2 changes: 0 additions & 2 deletions thirdparty/cargo-auditable/go.sum

This file was deleted.

67 changes: 0 additions & 67 deletions thirdparty/cargo-auditable/main.go

This file was deleted.

0 comments on commit 904457c

Please sign in to comment.