secrets

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CmdSecretsCreate = cli.Command{
	Name:        "create",
	Aliases:     []string{"add", "set"},
	Usage:       "Create an action secret",
	Description: "Create a secret for use in repository actions and workflows",
	ArgsUsage:   "<secret-name> [secret-value]",
	Action:      runSecretsCreate,
	Flags: append([]cli.Flag{
		&cli.StringFlag{
			Name:  "file",
			Usage: "read secret value from file",
		},
		&cli.BoolFlag{
			Name:  "stdin",
			Usage: "read secret value from stdin",
		},
	}, flags.AllDefaultFlags...),
}

CmdSecretsCreate represents a sub command to create action secrets

View Source
var CmdSecretsDelete = cli.Command{
	Name:        "delete",
	Aliases:     []string{"remove", "rm"},
	Usage:       "Delete an action secret",
	Description: "Delete a secret used by repository actions",
	ArgsUsage:   "<secret-name>",
	Action:      runSecretsDelete,
	Flags: append([]cli.Flag{
		&cli.BoolFlag{
			Name:    "confirm",
			Aliases: []string{"y"},
			Usage:   "confirm deletion without prompting",
		},
	}, flags.AllDefaultFlags...),
}

CmdSecretsDelete represents a sub command to delete action secrets

View Source
var CmdSecretsList = cli.Command{
	Name:        "list",
	Aliases:     []string{"ls"},
	Usage:       "List action secrets",
	Description: "List secrets configured for repository actions",
	Action:      RunSecretsList,
	Flags: append([]cli.Flag{
		&flags.PaginationPageFlag,
		&flags.PaginationLimitFlag,
	}, flags.AllDefaultFlags...),
}

CmdSecretsList represents a sub command to list action secrets

Functions

func RunSecretsList

func RunSecretsList(ctx stdctx.Context, cmd *cli.Command) error

RunSecretsList list action secrets

Types

This section is empty.

Jump to

Keyboard shortcuts

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