analyzer

package
v3.82.8 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: AGPL-3.0 Imports: 26 Imported by: 0

README

Implementing Analyzers

Defining the Permissions

Permissions can be defined in:

  • lower snake case as permission_name:access_level
  • kebab case as permission-name:read
  • dot notation as permission.name:read

The Permissions are initially defined as a yaml file.

At the top of the analyzer implementation you specify the go generate command.

You can install the generator with go install github.com/trufflesecurity/trufflehog/v3/pkg/analyzer/generate_permissions.

Then you can run go generate ./... to generate the Permission types for the analyzer.

The generated Permission types are to be used in the AnalyzerResult struct when defining the Permissions and in your code.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command(app *kingpin.Application) *kingpin.CmdClause

func Run

func Run(cmd string)

Types

This section is empty.

Directories

Path Synopsis
asana
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
bitbucket
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
github/classic
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
github/finegrained
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
huggingface
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
mailchimp
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
mailgun
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
mysql
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
openai
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
opsgenie
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
postgres
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
postman
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
sendgrid
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
shopify
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
slack
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
sourcegraph
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
square
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
stripe
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
twilio
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
pb

Jump to

Keyboard shortcuts

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