command
module
Version:
v0.1.2
Opens a new window with list of versions in this module.
Published: Jul 27, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 19
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
collector-tfsec
Send the result of tfsec scans to Rode.
Local Development
To work with the collector locally, you need a running instance of Rode and its dependencies.
- Run the collector with
go run main.go --rode-host=localhost:50051 --rode-insecure-disable-transport-security
- If your Rode instance is configured for auth, include the
--proxy-auth
flag.
- Send a scan to the collector:
$ cat scan.json
{
"commitId": "123",
"repository": "https://github.com/rode/demo",
"scanDirectory": "/absolute/path/to/scan/root",
"results": [
{
"rule_id": "GEN001",
// ...
}
]
}
$ curl -H 'Content-Type: application/json' -d @scan.json http://localhost:8083/v1alpha1/scans
- To run the fmt check and tests, use
make test
- To add the required license headers, run
make license
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
|
|
proto
|
|
v1alpha1
Package v1alpha1 is a reverse proxy.
|
Package v1alpha1 is a reverse proxy. |
|
|
Click to show internal directories.
Click to hide internal directories.