Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 02ab846

Browse files
Merge pull request #303 from Umofomia/patch-1
README update: Use umask when creating token file
2 parents 0b7f435 + c025ada commit 02ab846

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎README.md‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,13 @@ token file by pasting a GitHub token with only the `gist` permission into a
106106
file called `~/.gist`. You can create one from https://github.com/settings/tokens
107107

108108
This file should contain only the token (~40 hex characters), and to make it
109-
easier to edit, can optionally have a final newline (\n or \r\n).
109+
easier to edit, can optionally have a final newline (`\n` or `\r\n`).
110110

111111
For example, one way to create this file would be to run:
112112

113-
echo MY_SECRET_TOKEN > ~/.gist
113+
(umask 0077 && echo MY_SECRET_TOKEN > ~/.gist)
114+
115+
The `umask` ensures that the file is only accessible from your user account.
114116

115117
### GitHub Enterprise
116118

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /