Send the result of tfsec scans to Rode.
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.
- If your Rode instance is configured for auth, include the
- 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