Documentation
¶
Index ¶
Constants ¶
View Source
const (
GITLEAKS_REVIEW_COMMENT_TEMPLATE = `` /* 647-byte string literal not displayed */
)
View Source
const (
NO_REVIEW_COMMENT = "" /* 127-byte string literal not displayed */
)
View Source
const (
RISKEN_COMMENT_TEMPLATE = `` /* 128-byte string literal not displayed */
)
View Source
const (
SEMGREP_REVIEW_COMMENT_TEMPLATE = `` /* 162-byte string literal not displayed */
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GithubPREvent ¶
type GithubPREvent struct { Action string `json:"action"` Number int `json:"number"` PullRequest *github.PullRequest `json:"pull_request"` Repository *github.Repository `json:"repository"` Owner string `json:"owner"` RepoName string `json:"repo_name"` }
GithubPREvent is a struct for GitHub Pull Request Event. ref: https://docs.github.com/ja/webhooks/webhook-events-and-payloads#pull_request example: https://github.com/pingdotgg/sample_hooks/blob/main/github_pr_opened.json
type GitleaksScanner ¶
type GitleaksScanner struct {
// contains filtered or unexported fields
}
func (*GitleaksScanner) Scan ¶
func (s *GitleaksScanner) Scan(ctx context.Context, repo *github.Repository, sourceCodePath string, changeFiles []*github.CommitFile) ([]*ScanResult, error)
type ReviewOption ¶
type ReviewService ¶
func NewReviewService ¶
func NewReviewService(ctx context.Context, opt *ReviewOption, logger *slog.Logger) ReviewService
type ScanResult ¶
type Scanner ¶
type Scanner interface {
Scan(ctx context.Context, repo *github.Repository, sourceCodePath string, changeFiles []*github.CommitFile) ([]*ScanResult, error)
}
func NewGitleaksScanner ¶
func NewSemgrepScanner ¶
type SemgrepScanner ¶
type SemgrepScanner struct {
// contains filtered or unexported fields
}
func (*SemgrepScanner) Scan ¶
func (s *SemgrepScanner) Scan(ctx context.Context, repo *github.Repository, sourceCodePath string, changeFiles []*github.CommitFile) ([]*ScanResult, error)
Click to show internal directories.
Click to hide internal directories.