🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

github.com/goplugin/plugin-testing-framework/tools/ghsecrets

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/goplugin/plugin-testing-framework/tools/ghsecrets

v0.0.0-20241126082045-fb2682cd0f9a
Source
Go
Version published
Created
Source

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:

  • If you use asdf run asdf reshim golang

  • 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
    
  • 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
    

FAQs

Package last updated on 26 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts