Comments (6)
Hello @wing-cheng ,
The recommended way to build is the following
./bootstrap.sh
docker build --rm=true --tag=deepfenceio/deepfence_secret_scanner:latest -f Dockerfile .
If you would like to build outside of docker, please follow these steps:
./bootstrap.sh
# Install dependencies: https://github.com/deepfence/SecretScanner/blob/master/Dockerfile#L4-L12
# Build: https://github.com/deepfence/SecretScanner/blob/master/Dockerfile#L16-L17
If the base OS is not alpine, equivalent dependencies in the target OS needs to be installed.
from secretscanner.
Hello, can u explain these 2 sentence? They dont quite make sense to me.
I just wanna build it as standalone with Go.
# Install dependencies: https://github.com/deepfence/SecretScanner/blob/master/Dockerfile#L4-L12
# Build: https://github.com/deepfence/SecretScanner/blob/master/Dockerfile#L16-L17
from secretscanner.
Some of the dependent golang libraries has system dependencies, so they need to be installed.
After that you can build by running these commands (from here)
make clean && make
from secretscanner.
Hey still getting the same error, the make file still runs go build -i -v
$ go build -i -v go: downloading github.com/deepfence/SecretScanner v1.1.2 go: github.com/deepfence/SecretScanner upgrade => v1.1.2 go get: github.com/deepfence/[email protected] requires github.com/deepfence/[email protected]: invalid version: unknown revision 000000000000
from secretscanner.
Hi, you have to run ./bootstrap.sh
first.
./bootstrap.sh
# install dependencies
make clean && make
from secretscanner.
I did, but got more errors
$ ./bootstrap.sh
$ make clean
(cd agent-plugins-grpc && make clean)
make[1]: Entering directory 'C:/Users/xxx/Documents/SecretScanner/agent-plugins-grpc'
rm -rf ./proto/*.go
make[1]: Leaving directory 'C:/Users/xxx/Documents/SecretScanner/agent-plugins-grpc'
rm ./SecretScanner
rm: cannot remove './SecretScanner': No such file or directory
Makefile:10: recipe for target 'clean' failed
make: [clean] Error 1 (ignored)
$ make
(cd agent-plugins-grpc && make go)
make[1]: Entering directory 'C:/Users/xxx/Documents/SecretScanner/agent-plugins-grpc'
protoc --go_out=proto --go_opt=paths=source_relative \
--go-grpc_out=proto --go-grpc_opt=paths=source_relative \
--proto_path=proto \
proto/*.proto
/usr/bin/sh: line 1: protoc: command not found
Makefile:2: recipe for target 'go' failed
make[1]: *** [go] Error 127
make[1]: Leaving directory 'C:/Users/xxx/Documents/SecretScanner/agent-plugins-grpc'
Makefile:7: recipe for target 'C:/Users/xxx/Documents/SecretScanner/agent-plugins-grpc/proto/*.go' failed
make: *** [C:/Users/xxx/Documents/SecretScanner/agent-plugins-grpc/proto/*.go] Error 2
from secretscanner.
Related Issues (20)
- Json File Output Options Change HOT 3
- Unable to use the command 'go build -v'
- Unable to run secret_scanner in Gitlab pipeline> podman ps:exit status 125 HOT 2
- Password Env not found in Image HOT 4
- Scanning for Secrets in Envs HOT 1
- SecretScanner http server post format HOT 4
- can't install from repo HOT 3
- Reduce false positives
- Replace blacklist_ with exclude_ in config keys and error messages
- GitHub Action? HOT 1
- add pre-commit hook support for secretscanner
- add option to run secretscanner as server in standalone mode
- feature-req: container runtime as a flag HOT 1
- [feat]:Docker extension for SecretScanner
- Own configuration file
- How to exclude paths? HOT 3
- Github action and secretscanner match support for 140 secret types using SARIF file integration
- Exlude file by a file name?
- Detect Kubernetes service account token
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from secretscanner.