ghsecrets

command module
v0.0.0-...-fb2682c Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: MIT Imports: 8 Imported by: 0

README

ghsecrets

ghsecrets is a command-line tool designed to manage and set test secrets in GitHub via the GitHub CLI.

Installation

To install ghsecrets CLI, you need to have Go installed on your machine. With Go installed, run the following command:

go install github.com/goplugin/plugin-testing-framework/tools/ghsecrets@latest

Please install GitHub CLI to use this tool - https://cli.github.com/

Usage

Set default test secrets from ~/.testsecrets file:

ghsecrets set

FAQ

Q: What should I do if I get "command not found: ghsecrets" after installation?

This error typically means that the directory where Go installs its binaries is not included in your system's PATH. The binaries are usually installed in $GOPATH/bin or $GOBIN. Here's how you can resolve this issue:

  1. If you use asdf run asdf reshim golang

  2. Or, add Go bin directory to PATH:

  • First, find out where your Go bin directory is by running:

    echo $(go env GOPATH)/bin
    

    This command will print the path where Go binaries are installed, typically something like /home/username/go/bin

  • Add the following line at the end of your shell config file (.bashrc, .zshrc), usually located at ~/:

    export PATH="$PATH:<path-to-go-bin>"
    
  • Apply the changes by sourcing the file:

    source ~/.bashrc  # Use the appropriate file like .zshrc if needed
    
  1. Alternatively, run using the full path:

    If you prefer not to alter your PATH, or if you are troubleshooting temporarily, you can run the tool directly using its full path:

    $(go env GOPATH)/bin/ghsecrets set
    

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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