verificationpolicy

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2026 License: MIT Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package verificationpolicy parses and validates PR-declared verification commands without invoking a shell.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NormalizeAndHash

func NormalizeAndHash(commands Commands) string

Types

type Command

type Command struct {
	Display string  `json:"display"`
	Stages  []Stage `json:"stages"`
}

func ParseLine

func ParseLine(line string) (Command, error)

type Commands

type Commands struct {
	Commands []Command `json:"commands"`
}

type Stage

type Stage struct {
	Argv []string `json:"argv"`
}

type Whitelist

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

func LoadWhitelist

func LoadWhitelist(path string) (*Whitelist, error)

func (*Whitelist) Validate

func (w *Whitelist) Validate(command Command, repositoryCLI, workspace string) error

func (*Whitelist) ValidateStatic

func (w *Whitelist) ValidateStatic(command Command, repositoryCLI string) error

ValidateStatic validates syntax and lexical path containment without requiring PR files to exist in the trusted base checkout.

Jump to

Keyboard shortcuts

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