-
Notifications
You must be signed in to change notification settings - Fork 340
CLI for SecretScanner #83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
saurabh2253
wants to merge
13
commits into
master
Choose a base branch
from
cli
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 12 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
42e6910
CLI for SS
saurabh2253 2d500ce
branch name change
saurabh2253 3eadc7e
removed main.go compilation
saurabh2253 b0346d1
Clean up Makefile
noboruma 2fe947c
cli bullseye to alpine
saurabh2253 3099dc0
Add new static Makefile action
noboruma 82143d3
Adding debug logs, to be reverted
saurabh2253 af59d96
adding log for revert
saurabh2253 22b0395
reverting debug logs and cleaning up
saurabh2253 f5b2a6d
Fixing logic of quiet
saurabh2253 36daa50
Fixed json printing of secrets
saurabh2253 dc6cefb
fix
saurabh2253 e807224
Added docs to use cli
saurabh2253 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 @@ | ||
| FROM golang:1.19.4-alpine | ||
|
|
||
| RUN apk add --upgrade gcc musl-dev pkgconfig g++ make git protoc cmake boost-dev | ||
| RUN apk add hyperscan-dev --repository=https://dl-cdn.alpinelinux.org/alpine/v3.13/community | ||
| RUN apk add ragel | ||
|
|
||
| ENV PKG_CONFIG_PATH=/usr/local/include/hs/ \ | ||
| CGO_CFLAGS="-I/usr/local/include/hyperscan/src" \ | ||
| LD_LIBRARY_PATH=/usr/local/lib:/usr/local/include/hs/lib:$LD_LIBRARY_PATH | ||
|
|
||
| RUN go install google.golang.org/protobuf/cmd/[email protected] \ | ||
| && go install google.golang.org/grpc/cmd/[email protected] | ||
|
|
||
| WORKDIR /go/src | ||
| RUN git clone https://github.com/intel/hyperscan.git | ||
| RUN cd hyperscan && mkdir build && cd build && cmake .. -DCMAKE_BUILD_TYPE=MinSizeRel | ||
|
|
||
| WORKDIR /go/src/SecretScanner | ||
| ENV PKG_CONFIG_PATH=/go/src/hyperscan/build | ||
| ENV CGO_LDFLAGS="-L /go/src/hyperscan/build/lib -static" | ||
| ENV CGO_CFLAGS="-I/go/src/hyperscan/src" | ||
| ENV GO_BUILD_EXTRA="-buildvcs=false" | ||
|
|
||
| ENTRYPOINT ["/bin/sh", "-c", "make clean && make"] | ||
This file contains hidden or 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
Submodule agent-plugins-grpc
updated
2 files
| +1 −0 | proto/malware_scanner.proto | |
| +2 −1 | proto/package_scanner.proto |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be added to Dockerfile also here