pulling repository can hang execution indefinitely
Metadata
Current evaluation
No evaluation has been recorded for this issue yet.
Issue body
### Bug Description
During pull phase if repository is private or does not exist, craft will hung forever waiting for the credentials.
It should immediately fail as there is no place for user to put the credentials in
### To Reproduce
Build the source that requests you to use credentials (e.g. source from GitHub or Launchpad via `https://` that is not public or does not exist).
### part yaml
```yaml
non-existing-part:
# See 'snapcraft plugins'
source: https://github.com/non-existing-user/non-existing-repo
source-type: git
plugin: nil
```
### Relevant log output
```
2024-12-12 10:37:22.198 execute action my-part:Action(part_name='my-part', step=Step.PULL, action_type=ActionType.RUN, reason=None, project_vars=None, properties=ActionProperties(changed_files=None, changed_dirs=None)) │
2024-12-12 10:37:22.199 Executing: git clone --recursive https://github.com/non-existing-user/non-existing-repo │
2024-12-12 10:37:22.201 :: Cloning into '/root/parts/my-part/src'...
```
Evaluation history
No evaluation history available.