mirror of
https://github.com/trufflesecurity/trufflehog.git
synced 2024-11-10 15:14:38 +00:00
4409210b87
* Add custom_detectors proto * Generate proto code * Create custom_detectors package Also create protoyaml package to test YAML unmarshalling the configuration. * Simplify custom_detectors proto by removing connection * Generate proto code * Update custom_detectors parsing tests
39 lines
1.6 KiB
Bash
Executable file
39 lines
1.6 KiB
Bash
Executable file
#!/bin/bash
|
|
|
|
set -eux
|
|
|
|
protoc -I proto/ \
|
|
-I ${GOPATH}/src \
|
|
-I /usr/local/include \
|
|
-I ${GOPATH}/src/github.com/envoyproxy/protoc-gen-validate \
|
|
--go_out=plugins=grpc:./pkg/pb/credentialspb --go_opt=paths=source_relative \
|
|
--validate_out="lang=go,paths=source_relative:./pkg/pb/credentialspb" \
|
|
proto/credentials.proto
|
|
protoc -I proto/ \
|
|
-I ${GOPATH}/src \
|
|
-I /usr/local/include \
|
|
-I ${GOPATH}/src/github.com/envoyproxy/protoc-gen-validate \
|
|
--go_out=plugins=grpc:./pkg/pb/sourcespb --go_opt=paths=source_relative \
|
|
--validate_out="lang=go,paths=source_relative:./pkg/pb/sourcespb" \
|
|
proto/sources.proto
|
|
protoc -I proto/ \
|
|
-I ${GOPATH}/src \
|
|
-I /usr/local/include \
|
|
-I ${GOPATH}/src/github.com/envoyproxy/protoc-gen-validate \
|
|
--go_out=plugins=grpc:./pkg/pb/detectorspb --go_opt=paths=source_relative \
|
|
--validate_out="lang=go,paths=source_relative:./pkg/pb/detectorspb" \
|
|
proto/detectors.proto
|
|
protoc -I proto/ \
|
|
-I ${GOPATH}/src \
|
|
-I /usr/local/include \
|
|
-I ${GOPATH}/src/github.com/envoyproxy/protoc-gen-validate \
|
|
--go_out=plugins=grpc:./pkg/pb/source_metadatapb --go_opt=paths=source_relative \
|
|
--validate_out="lang=go,paths=source_relative:./pkg/pb/source_metadatapb" \
|
|
proto/source_metadata.proto
|
|
protoc -I proto/ \
|
|
-I ${GOPATH}/src \
|
|
-I /usr/local/include \
|
|
-I ${GOPATH}/src/github.com/envoyproxy/protoc-gen-validate \
|
|
--go_out=plugins=grpc:./pkg/pb/custom_detectorspb --go_opt=paths=source_relative \
|
|
--validate_out="lang=go,paths=source_relative:./pkg/pb/custom_detectorspb" \
|
|
proto/custom_detectors.proto
|