Skip to content

Commit

Permalink
added logs
Browse files Browse the repository at this point in the history
  • Loading branch information
daskuznetsova committed Oct 3, 2023
1 parent df6a202 commit a57a0ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/codeqlExecuteScan.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,13 @@ func initGitInfo(config *codeqlExecuteScanOptions) RepoInfo {

func getToken(config *codeqlExecuteScanOptions) (bool, string) {
if len(config.GithubToken) > 0 {
log.Entry().Debugf("got token from config")
return true, config.GithubToken
}

envVal, isEnvGithubToken := os.LookupEnv("GITHUB_TOOLS_TOKEN")
if isEnvGithubToken {
log.Entry().Debugf("got token from GITHUB_TOOLS_TOKEN")
return true, envVal
}

Expand Down

0 comments on commit a57a0ee

Please sign in to comment.