Documentation
¶
Overview ¶
Package githubactions provides a registry client for GitHub Actions.
Actions are git repositories on GitHub, so package metadata and tags come from the GitHub REST API. Unauthenticated requests are limited to 60 per hour. Subdirectory actions such as "github/codeql-action/init" share the repository of their first two path segments.
Index ¶
- Constants
- type Registry
- func (r *Registry) Ecosystem() string
- func (r *Registry) FetchDependencies(_ context.Context, _, _ string) ([]core.Dependency, error)
- func (r *Registry) FetchMaintainers(_ context.Context, _ string) ([]core.Maintainer, error)
- func (r *Registry) FetchPackage(ctx context.Context, name string) (*core.Package, error)
- func (r *Registry) FetchVersions(ctx context.Context, name string) ([]core.Version, error)
- func (r *Registry) URLs() core.URLBuilder
- type URLs
Constants ¶
const (
DefaultURL = "https://api.github.com"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func New ¶
New creates a GitHub Actions registry client. baseURL is the GitHub REST API root; a GitHub Enterprise Server root ending in /api/v3 also sets the web URL used for repository pages and archive downloads.
func (*Registry) FetchDependencies ¶
func (*Registry) FetchMaintainers ¶
func (*Registry) FetchPackage ¶
func (*Registry) FetchVersions ¶
FetchVersions lists the repository's tags. Branches and commit SHAs are valid refs for an action but are not enumerated. Integrity is left empty because GitHub does not guarantee archive tarballs are byte-stable.
func (*Registry) URLs ¶
func (r *Registry) URLs() core.URLBuilder