File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -8,14 +8,15 @@ Token expiration: NONE
8
8
Rate limit usage: 6 / 5000 (~0%)
9
9
OAuth scopes: gist, read:org, repo, workflow
10
10
11
- $ TOKEN =" <some expiring token>" github-token-monitor --token-env-vars TOKEN
12
- Checking "TOKEN "...
11
+ $ OLD_TOKEN =" <some expiring token>" github-token-monitor --token-env-vars OLD_TOKEN
12
+ Checking "OLD_TOKEN "...
13
13
Token user login: your-github-username
14
14
Token expiration: 2025-07-09 21:27:10 +0000 UTC (9.1 days)
15
15
WARNING: Expiring soon!
16
16
Rate limit usage: 9 / 5000 (~0%)
17
17
OAuth scopes: read:packages
18
18
19
+ Error: checks failed for token(s): OLD_TOKEN
19
20
exit status 1
20
21
```
21
22
Original file line number Diff line number Diff line change @@ -36,12 +36,9 @@ var flags struct {
36
36
37
37
func main () {
38
38
err := run ()
39
- if _ , isFailedChecks := err .(failedChecksError ); isFailedChecks {
40
- os .Exit (1 )
41
- }
42
39
if err != nil {
43
40
fmt .Printf ("Error: %v\n " , err )
44
- os .Exit (2 )
41
+ os .Exit (1 )
45
42
}
46
43
}
47
44
You can’t perform that action at this time.
0 commit comments