Skip to content

Commit 3a513b6

Browse files
committed
docs: add stdin token example to README
Add example showing how to pipe a token from stdin using file:///dev/stdin to avoid storing tokens in environment variables or command history. Closes #187
1 parent eb5779a commit 3a513b6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,9 @@ Debug an error/block or incomplete backup into a temporary directory. Omit "incr
359359

360360
github-backup -f $FINE_ACCESS_TOKEN -o /tmp/github-backup/ -l debug -P --all-starred --starred --watched --followers --following --issues --issue-comments --issue-events --pulls --pull-comments --pull-commits --labels --milestones --repositories --wikis --releases --assets --pull-details --gists --starred-gists $GH_USER
361361

362+
Pipe a token from stdin to avoid storing it in environment variables or command history (Unix-like systems only)::
363+
364+
my-secret-manager get github-token | github-backup user -t file:///dev/stdin -o /backup --repositories
362365

363366

364367
Development

0 commit comments

Comments
 (0)