Documentation
¶
Overview ¶
Package github provides detectors for GitHub secret types.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OAuthDetector ¶
type OAuthDetector struct{}
OAuthDetector detects GitHub server-/user-to-server tokens (gho_/ghu_/ghr_/ghs_), including new stateless ghs_ installation tokens.
func (*OAuthDetector) Description ¶
func (d *OAuthDetector) Description() string
Description returns a human-readable description of the GitHub OAuth2 token detector.
func (*OAuthDetector) ID ¶
func (d *OAuthDetector) ID() string
ID returns the unique identifier of the GitHub OAuth2 token detector.
func (*OAuthDetector) Keywords ¶
func (d *OAuthDetector) Keywords() []string
Keywords returns the Aho-Corasick pre-filter keywords for GitHub OAuth2 token detection.
func (*OAuthDetector) Scan ¶
func (d *OAuthDetector) Scan(_ context.Context, data []byte) []detector.RawFinding
Scan scans the given data for GitHub OAuth2 Token patterns.
func (*OAuthDetector) Severity ¶
func (d *OAuthDetector) Severity() finding.Severity
Severity returns the default severity level for GitHub OAuth2 token findings.
type Token ¶
type Token struct{}
Token detects GitHub Personal Access Tokens.
func (*Token) Description ¶
Description returns a human-readable description of the GitHub token detector.
func (*Token) Keywords ¶
Keywords returns the Aho-Corasick pre-filter keywords for GitHub token detection.