auth

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authenticate

func Authenticate(method, sourceHost, targetHost, sourceToken, targetToken string) (string, string, error)

Authenticate resolves tokens for source and target GitHub hosts. It supports three modes: "auto" (try gh CLI first, fallback to PAT), "gh" (gh CLI only), and "pat" (PAT only).

func AuthenticateTarget

func AuthenticateTarget(method, targetHost, targetToken string) (string, error)

AuthenticateTarget resolves only the target token (for public source repos).

Types

This section is empty.

Jump to

Keyboard shortcuts

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