Skip to content

Commit e1782a0

Browse files
committed
Merge branch 'master' of github.com:unfor19/github-secrets
2 parents 01f83d8 + c74d5e8 commit e1782a0

1 file changed

Lines changed: 39 additions & 18 deletions

File tree

README.md

Lines changed: 39 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,67 @@
11
# githubsecrets
22

3-
![Release Version](https://img.shields.io/github/v/release/unfor19/githubsecrets) [![Build Status](https://cloud.drone.io/api/badges/unfor19/githubsecrets/status.svg)](https://cloud.drone.io/unfor19/githubsecrets) ![Open Issues](https://img.shields.io/github/issues-raw/unfor19/githubsecrets) ![PyPi Downloads](https://img.shields.io/pypi/dm/githubsecrets) ![License MIT](https://img.shields.io/github/license/unfor19/githubsecrets)
3+
[![Build Status](https://cloud.drone.io/api/badges/unfor19/githubsecrets/status.svg)](https://cloud.drone.io/unfor19/githubsecrets)
44

55
A simple CLI to manage GitHub secrets, that are used with [GitHub Actions](https://github.com/features/actions)
66

77
![Usage-Example](./assets/github-secrets-usage.gif)
88

9-
## Requirements
10-
11-
- Python v3.6.7 and above
12-
13-
- POSIX - Linux, macOS or Windows with [Git Bash](https://gitforwindows.org/)
14-
159
## Installation
1610

1711
### pip
1812

19-
Install with pip on your machine, the package available at [PyPi](https://pypi.org/project/githubsecrets/)
13+
Python v3.6.7 and above
14+
15+
Install with pip on your machine; the package is available at [PyPi](https://pypi.org/project/githubsecrets/)
2016

2117
```bash
2218
$ pip install githubsecrets
2319
```
2420

2521
### Docker
2622

27-
Mount your home directory to `root`, the image available at [DockerHub](https://hub.docker.com/r/unfor19/githubsecrets)
23+
Mount local directory to `root`, the image is available at [DockerHub](https://hub.docker.com/r/unfor19/githubsecrets)
24+
25+
The image runs as a CLI; you must provide arguments, prompts are not available while running in Docker
2826

29-
The image runs as a CLI, you only need to provide the arguments, for example
27+
#### Linux and macOS
28+
29+
Mount your home directory, or any other directory to save the credentials file
3030

3131
```bash
32+
$ docker run -v $HOME:/root unfor19/githubsecrets --help
33+
Usage: ghs [OPTIONS] COMMAND [ARGS]...
34+
...
35+
```
36+
37+
#### Windows
3238

33-
# available commands
34-
$ docker run -v $HOME:/root githubsecrets --help
39+
Mount your Temp directory, or any other directory to save the credentials file. Make sure you use `/` and not `\`
40+
41+
```
42+
$ docker run --rm -v c:/Temp:/root unfor19/githubsecrets --help
3543
Usage: ghs [OPTIONS] COMMAND [ARGS]...
3644
...
45+
```
3746

38-
# create credentials file
39-
$ docker run --rm -v $HOME:/root githubsecrets init
47+
### Build from source
48+
49+
```bash
50+
$ git clone https://github.com/unfor19/githubsecrets.git && cd githubsecrets
51+
...
52+
$ pip install --upgrade pip
53+
...
54+
$ pip install -r requirements.txt
55+
...
56+
$ pip install --editable .
57+
...
58+
# Done!
4059
```
4160

4261
## Getting Started
4362

63+
__Note__: When using Docker, no need to add `ghs`; supply only a command and its arguments
64+
4465
1. Initialize this application - Creates a credential file at `~/.githubsecrets/credentials`
4566

4667
```bash
@@ -52,9 +73,9 @@ $ docker run --rm -v $HOME:/root githubsecrets init
5273
- repo (all)
5374
- admin:public_key > read:public_key
5475

55-
1. Save the token in a safe place, we'll use it in the next step
76+
1. Save the token in a safe place; we'll use it in the next step
5677

57-
1. Create a profile
78+
1. Create a profile, use the `-p` flag and supply a profile name
5879

5980
```bash
6081
$ ghs profile-apply -p willy_wonka
@@ -64,7 +85,7 @@ $ docker run --rm -v $HOME:/root githubsecrets init
6485

6586
You'll be prompted to insert:
6687

67-
- Github owner- which is your GitHub Organization or GitHub Account name
88+
- Github owner - which is your GitHub Organization or GitHub Account name (not email address)
6889
- Personal access token - that you've created in the previous steps
6990

7091
1. Create a GitHub secret
@@ -84,7 +105,7 @@ $ docker run --rm -v $HOME:/root githubsecrets init
84105
- 204 - success
85106
- 404 - secret or repository not found
86107

87-
## Available commands
108+
### Available commands
88109

89110
View all available commands with `ghs --help`
90111

0 commit comments

Comments
 (0)