Skip to content

Commit

Permalink
fix GitHub auth token init
Browse files Browse the repository at this point in the history
  • Loading branch information
stapelberg committed Dec 13, 2023
1 parent 25f9369 commit b645049
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/gokr-update-firmware/firmware.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func main() {
log.SetFlags(log.LstdFlags | log.Lshortfile)

if *githubToken == "" {
if fromEnv := os.Getenv("GITHUB_USER") + ":" + os.Getenv("GITHUB_AUTH_TOKEN"); fromEnv != "" {
if fromEnv := os.Getenv("GITHUB_AUTH_TOKEN"); fromEnv != "" {
*githubToken = fromEnv
}
}
Expand Down

0 comments on commit b645049

Please sign in to comment.