fix: remove logging of sensitive environment variables in main function
This commit is contained in:
parent
e2aadf659f
commit
655fc5fab7
3
main.go
3
main.go
@ -33,9 +33,6 @@ func main() {
|
||||
repoOwner := os.Getenv("REPO_OWNER")
|
||||
repoName := os.Getenv("REPO_NAME")
|
||||
|
||||
logger.Printf("Environment variables: ISSUE_NUMBER=%s, ISSUE_TITLE=%s, ISSUE_LABELS=%s, GITEA_TOKEN=%s, GITEA_URL=%s, REPO_OWNER=%s, REPO_NAME=%s\n",
|
||||
issueNumberStr, issueTitle, labelsStr, giteaToken, giteaAPIURL, repoOwner, repoName)
|
||||
|
||||
if issueNumberStr == "" || issueTitle == "" || giteaToken == "" || giteaAPIURL == "" || repoOwner == "" || repoName == "" {
|
||||
logger.Println("Error: some environment variables are missing.")
|
||||
os.Exit(1)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user