forked from APACGAMONDE/Gift-Card-Trade-in
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgh-secret-set.1
81 lines (55 loc) · 1.56 KB
/
gh-secret-set.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
.nh
.TH "gh" "1" "Jun 2021" "" ""
.SH NAME
.PP
gh\-secret\-set \- Create or update secrets
.SH SYNOPSIS
.PP
\fBgh secret set [flags]\fP
.SH DESCRIPTION
.PP
Locally encrypt a new or updated secret at either the repository, environment, or organization level and send it to GitHub for storage.
.SH OPTIONS
.PP
\fB\-b\fP, \fB\-\-body\fP=""
A value for the secret. Reads from STDIN if not specified.
.PP
\fB\-e\fP, \fB\-\-env\fP=""
Set a secret for an organization
.PP
\fB\-o\fP, \fB\-\-org\fP=""
Set a secret for an organization
.PP
\fB\-r\fP, \fB\-\-repos\fP=[]
List of repository names for \fB\fCselected\fR visibility
.PP
\fB\-v\fP, \fB\-\-visibility\fP="private"
Set visibility for an organization secret: \fB\fCall\fR, \fB\fCprivate\fR, or \fB\fCselected\fR
.SH OPTIONS INHERITED FROM PARENT COMMANDS
.PP
\fB\-\-help\fP[=false]
Show help for command
.PP
\fB\-R\fP, \fB\-\-repo\fP=""
Select another repository using the \fB\fC[HOST/]OWNER/REPO\fR format
.SH EXAMPLE
.PP
.RS
.nf
Paste secret in prompt
$ gh secret set MYSECRET
Use environment variable as secret value
$ gh secret set MYSECRET \-b"${ENV\_VALUE}"
Use file as secret value
$ gh secret set MYSECRET < file.json
Set environment level secret
$ gh secret set MYSECRET \-bval \-\-env=anEnv
Set organization level secret visible to entire organization
$ gh secret set MYSECRET \-bval \-\-org=anOrg \-\-visibility=all
Set organization level secret visible only to certain repositories
$ gh secret set MYSECRET \-bval \-\-org=anOrg \-\-repos="repo1,repo2,repo3"
.fi
.RE
.SH SEE ALSO
.PP
\fBgh\-secret(1)\fP