Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGitHubAPIURLFromEnv ¶
func GetGitHubAPIURLFromEnv() string
GetGitHubAPIURLFromEnv retrieves the GitHub API URL from environment Returns empty string if not set (will use default api.github.com)
func GetPRInfoFromEnv ¶
GetPRInfoFromEnv retrieves PR info from GitHub Actions environment variables Returns owner, repo, and PR number
func GetTokenFromEnv ¶
func GetTokenFromEnv() string
GetTokenFromEnv retrieves the GitHub token from environment variables
func PostComment ¶
func PostComment(analysis *api.SecurityAnalysis, opts CommentOptions) (*comment.CommentResult, error)
PostComment posts scan results as a comment to a GitHub pull request Returns without posting if no issues are found (ShouldProceed is true and no mitigations) If an existing Kusari comment exists, it will be updated instead of creating a new one
Types ¶
Click to show internal directories.
Click to hide internal directories.