github

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package github detects GitHub Personal Access Tokens (classic and fine-grained) and verifies them against api.github.com/user.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scanner

type Scanner struct{}

func (Scanner) FromData

func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) ([]detectors.Result, error)

func (Scanner) Keywords

func (Scanner) Keywords() []string

func (Scanner) Type

func (Scanner) Verify

func (Scanner) Verify(ctx context.Context, secret string) (bool, error)

Jump to

Keyboard shortcuts

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