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

checkoutpolicy

package
v0.92.8 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package checkoutpolicy defines the compiler's pull_request_target trust predicates.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base

func Base(repository, ref string) bool

Base accepts the supported base-repository/ref forms. Callers must separately reject additional fetches; this predicate does not authorize those refs.

func LiteralPair

func LiteralPair(repository, ref string) bool

LiteralPair identifies pairs eligible for exact allowlist matching, not repository/ref existence or trust. Callers must reject wiki and fetch options.

func LiteralRef

func LiteralRef(ref string) bool

LiteralRef excludes expression, wildcard, and pull-request refs from allowlist pairs.

func LiteralRepository

func LiteralRepository(repository string) bool

LiteralRepository reports whether a selector can participate in a literal allowlist pair.

func MatchesExpression

func MatchesExpression(value, expected string) bool

MatchesExpression accepts only one complete expression naming the expected context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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