Skip to content

Commit

Permalink
check for valid github token to prevent excessive confusion
Browse files Browse the repository at this point in the history
  • Loading branch information
finn-block committed Dec 14, 2023
1 parent 3d8f151 commit 8a68b36
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions reports/sdks.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ var (
}
)

func init() {
if ghToken == "" {
panic("please set environment variable GITHUB_TOKEN to a valid github token (generate one at https://github.com/settings/tokens?type=beta)")
}
}

func GetAllReports() ([]Report, error) {
ctx := context.TODO()

Expand Down

0 comments on commit 8a68b36

Please sign in to comment.