githubauth

package
v8.0.30 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package githubauth provides shared GitHub API credentials.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolveToken

func ResolveToken() string

ResolveToken prefers the server configuration, then the legacy environment settings.

func SetToken

func SetToken(token string)

SetToken replaces the global configured token, including clearing it on reload.

func TokenForURL

func TokenForURL(rawURL string) string

TokenForURL never exposes the shared credential outside the HTTPS GitHub API.

Types

This section is empty.

Jump to

Keyboard shortcuts

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