Help us shape the future of Go! Take the 2026 Go Developer Survey

githubint

package
v0.18.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoGithubAppInstallation = fmt.Errorf("no github app installations found")

Functions

func NewGithubClient

func NewGithubClient(installationID int) (githubClient, error)

Types

type GithubIntegration

type GithubIntegration struct {
	// contains filtered or unexported fields
}

func NewGithubIntegration

func NewGithubIntegration(db core.DB) *GithubIntegration

func (*GithubIntegration) CreateIssue

func (githubIntegration *GithubIntegration) CreateIssue(ctx context.Context, asset models.Asset, assetVersionSlug string, vuln models.Vuln, projectSlug string, orgSlug string, justification string, userID string) error

func (*GithubIntegration) CreateLabels added in v0.17.3

func (githubIntegration *GithubIntegration) CreateLabels(ctx context.Context, asset models.Asset) error

func (*GithubIntegration) FinishInstallation

func (githubIntegration *GithubIntegration) FinishInstallation(ctx core.Context) error

func (*GithubIntegration) GetID

func (githubIntegration *GithubIntegration) GetID() core.IntegrationID

func (*GithubIntegration) GetOrg

func (githubIntegration *GithubIntegration) GetOrg(ctx context.Context, userID string, providerID string, groupID string) (models.Org, error)

func (*GithubIntegration) GetRoleInGroup

func (githubIntegration *GithubIntegration) GetRoleInGroup(ctx context.Context, userID string, providerID string, groupID string) (core.Role, error)

func (*GithubIntegration) GetRoleInProject

func (githubIntegration *GithubIntegration) GetRoleInProject(ctx context.Context, userID string, providerID string, projectID string) (core.Role, error)

func (*GithubIntegration) HandleEvent

func (githubIntegration *GithubIntegration) HandleEvent(event any) error

func (*GithubIntegration) HandleWebhook

func (githubIntegration *GithubIntegration) HandleWebhook(ctx core.Context) error

func (*GithubIntegration) HasAccessToExternalEntityProvider

func (githubIntegration *GithubIntegration) HasAccessToExternalEntityProvider(ctx core.Context, externalEntityProviderID string) (bool, error)

func (*GithubIntegration) ListGroups

func (githubIntegration *GithubIntegration) ListGroups(ctx context.Context, userID string, providerID string) ([]models.Project, []core.Role, error)

func (*GithubIntegration) ListOrgs

func (githubIntegration *GithubIntegration) ListOrgs(ctx core.Context) ([]models.Org, error)

func (*GithubIntegration) ListProjects

func (githubIntegration *GithubIntegration) ListProjects(ctx context.Context, userID string, providerID string, groupID string) ([]models.Asset, []core.Role, error)

func (*GithubIntegration) ListRepositories

func (githubIntegration *GithubIntegration) ListRepositories(ctx core.Context) ([]core.Repository, error)

func (*GithubIntegration) UpdateIssue

func (githubIntegration *GithubIntegration) UpdateIssue(ctx context.Context, asset models.Asset, assetVersionSlug string, vuln models.Vuln) error

func (*GithubIntegration) WantsToFinishInstallation

func (githubIntegration *GithubIntegration) WantsToFinishInstallation(ctx core.Context) bool

func (*GithubIntegration) WantsToHandleWebhook

func (githubIntegration *GithubIntegration) WantsToHandleWebhook(ctx core.Context) bool

Jump to

Keyboard shortcuts

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