rab

command module
v0.0.0-...-301dfc2 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

README

rab

golang cli utility

Installation

Using the github secrets command requires to install sodiumlib brew install libsodium

after that you can go get it

go get github.com/raboley/rab

Usage

Github
Add secrets

You can add secrets to a repo by using

export MY_SECRET="SECRET VALUE"
rab github add secret MY_SECRET --owner raboley --repo rab

Secrets should be pulled from environment variables.

you can also add multiple secrets

export SECRET1="value 1"
export SECRET2="value 2"
rab github add secrets SECRET1,SECRET2 --owner raboley --repo rab

I generally need a lot of terraform and azure secrets in my actions so I might do something like this:

export REPO="aks-infra"
export OWNER="raboley"
rab github add secrets API_GITHUB_TOKEN,ARM_CLIENT_ID,ARM_CLIENT_SECRET,ARM_SUBSCRIPTION_ID,ARM_TENANT_ID,TF_API_TOKEN,TF_GITHUB_TOKEN --repo $REPO --owner $OWNER

Documentation

Overview

Copyright © 2020 NAME HERE <EMAIL ADDRESS>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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