Change the way token is retrieve

Signed-off-by: Hadi <[email protected]>
This commit is contained in:
Hadi
2025-09-15 14:54:51 +02:00
parent 3064cdbf7a
commit 26a1cfdd37
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -9,7 +9,8 @@ import (
flag "github.com/spf13/pflag"
)
func getToken() string {
// GetToken retrieves the GitHub token from the environment variable or config file
func GetToken() string {
token := os.Getenv("GITHUB_RECON_TOKEN")
if token != "" {
return token