You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Authenticate with your GitHub Enterprise Server or GitHub Enterprise Cloud account:
18
-
```bash
22
+
```
19
23
gh auth login
20
24
```
21
25
22
26
## Alerts subcommand
23
-
List secret scanning alerts for an enterprise:
24
-
```bash
27
+
Target either an enterprise, organization, or repository by specifying the `-e`, `-o`, or `-r` flags respectively. _Exactly one selection from these three flags is required._
28
+
29
+
```
25
30
gh secret-scanning alerts -e <enterprise>
26
31
```
27
32
28
-
List secret scanning alerts for an organization:
29
-
```bash
33
+
```
30
34
gh secret-scanning alerts -o <organization>
31
35
```
32
36
33
-
List secret scanning alerts for a repository:
34
-
```bash
37
+
```
35
38
gh secret-scanning alerts -r <repository>
36
39
```
37
40
38
-
Add flags to specify a GHES server, limit the number of secrets processed, filter for a specific secret provider, display the secret values, generate a csv report, include extra fields, and more:
Optionally add flags to specify a GHES server, limit the number of secrets processed, filter for a specific secret provider, display the secret values, generate a csv report, include extra fields, and more:
Target either an enterprise, organization, or repository by specifying the `-e`, `-o`, or `-r` flags respectively. _Exactly one selection from these three flags is required._
48
+
49
+
```
50
+
gh secret-scanning verify -e <enterprise>
51
+
```
52
+
53
+
```
54
+
gh secret-scanning verify -o <organization>
55
+
```
56
+
57
+
```
58
+
gh secret-scanning verify -r <repository>
59
+
```
60
+
61
+
Optionally add flags to specify a GHES server, limit the number of secrets processed, filter for a specific secret provider, display the secret values, generate a csv report, include extra fields, and more:
-u, --url string GitHub host to connect to (default "github.com")
70
-
-v, --verbose Generate verbose output
100
+
-v, --verbose Include additional secret alert fields
71
101
72
102
Use "secret-scanning [command] --help" for more information about a command.
73
-
```
103
+
```
104
+
105
+
# Demo
106
+
This example first lists the alerts for an organization with the `alerts` subcommand, and then verifies the secrets with the `verify` subcommand. The `-c` flag is used to generate a csv report of the results, and the `-i` flag is used to create an issue in any repository that contains a valid secret.
0 commit comments