The GIT_URL env var in your shell makes HawkScan try to clone from it. Unset GIT_URL and rerun hawk scan.

Context: Problem: HawkScan authenticates to the StackHawk platform and validates the YAML configuration, but the scan errors out with an unexpected Git credentials challenge. Cause: the GIT_URL environment variable is set in the shell that launched the CLI version of HawkScan, causing HawkScan to attempt to pull from the git repo in that variable. Unlike Docker-based HawkScan, the CLI inherits environment variables from the parent shell. Fix: unset the GIT_URL variable HawkScan is trying to use, then re-run the scan. On macOS: unset GIT_URL; hawk scan. On Jenkins: unset GIT_URL within a step in the Jenkinsfile pipeline before running the scan.

## Matched source
Source: Source: https://help.stackhawk.com/en/articles/6197544-hawkscan-cli-unexpectedly-requests-git-password-or-token-when-running-a-scan
Original query: "HawkScan CLI unexpectedly requests Git password or token when running a scan"
Key terms: hawkscan, password, requests, running, scan, token, unexpectedly
