collector-tfsec

command module
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

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.

  1. 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.
  2. 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
    
    
  3. To run the fmt check and tests, use make test
  4. To add the required license headers, run make license

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
proto
v1alpha1
Package v1alpha1 is a reverse proxy.
Package v1alpha1 is a reverse proxy.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL