Simone
2b6cb0ecb2
feat(§3.3): Implement Gitea PAT auth for guest-side git clone
Credential Manager target 'GiteaPAT' (default) read on host, passed
securely to guest WinRM session. Token never appears in argv, URL, or logs.
Guest auth flow (§1.5 compliant):
1. Host reads PAT via Get-StoredCredential -Target GiteaPAT
2. Username + password passed as ArgumentList to Invoke-Command
3. Guest writes temp .git-credentials file (https://user:token@host)
4. git clone uses: -c 'credential.helper=store --file <tmp>'
5. finally{} deletes credentials file regardless of clone success/fail
Setup (one-time on host):
New-StoredCredential -Target 'GiteaPAT' -UserName '<user>' `
-Password '<pat>' -Persist LocalMachine
Invoke-CIJob.ps1: added -GiteaCredentialTarget param (default: 'GiteaPAT'),
passed through to Invoke-RemoteBuild when -UseGitClone is set.
2026-05-10 22:03:36 +02:00
..
2026-05-10 20:08:19 +02:00
2026-05-10 20:08:19 +02:00
2026-05-09 00:39:52 +02:00
2026-05-10 20:08:19 +02:00
2026-05-10 22:03:36 +02:00
2026-05-10 22:03:36 +02:00
2026-05-10 18:36:38 +02:00
2026-05-10 20:46:36 +02:00
2026-05-10 20:08:19 +02:00
2026-05-10 20:08:19 +02:00
2026-05-10 20:08:19 +02:00
2026-05-10 20:46:36 +02:00
2026-05-10 21:59:51 +02:00
2026-05-10 20:46:36 +02:00
2026-05-10 15:58:57 +02:00
2026-05-10 19:07:48 +02:00
2026-05-10 20:08:19 +02:00