Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Git credential-manager FAILS #11176

Open
2 of 15 tasks
rolandmosimann opened this issue Dec 12, 2024 · 2 comments
Open
2 of 15 tasks

Git credential-manager FAILS #11176

rolandmosimann opened this issue Dec 12, 2024 · 2 comments
Assignees
Labels
awaiting-deployment Code complete; awaiting deployment and/or deployment in progress bug report

Comments

@rolandmosimann
Copy link

rolandmosimann commented Dec 12, 2024

Description

Running git credential-manager diagnose on the latest image fails.

Runner Image
Image: windows-2022
Version: 20241211.1.0

Credential-manager version: 2.6.0+3c28096588f549cb46f36b552390514356830abe

Diagnosis output:


Running diagnostics...

  >>>>  Environment[ OK ] Environment
  >>>>  File system[ OK ] File system
  >>>>  Networking[ OK ] Networking
  >>>>  Git[ OK ] Git
  >>>>  Credential storage[FAIL] Credential storage

    [!] Encountered an exception [!]
    System.Exception: Unable to persist credentials with the 'wincredman' credential store.
    
    See https://aka.ms/gcm/credstores for more information.
    
       at GitCredentialManager.CredentialStore.ValidateWindowsCredentialManager()
    
       at GitCredentialManager.CredentialStore.EnsureBackingStore()
    
       at GitCredentialManager.CredentialStore.Remove(String service, String account)
    
       at GitCredentialManager.Diagnostics.CredentialStoreDiagnostic.RunInternalAsync(StringBuilder log, IList`1 additionalFiles)
    
       at GitCredentialManager.Diagnostics.Diagnostic.<RunAsync>d__6.MoveNext()

    [*] Diagnostic test log [*]
    ICredentialStore instance is of type: CredentialStore
    
    Writing test credential...Deleting test credential...

  >>>>  Microsoft authentication (AAD/MSA)[ OK ] Microsoft authentication (AAD/MSA)
  >>>>  GitHub API[ OK ] GitHub API

Diagnostic summary: 6 passed, 0 skipped, 1 failed.

Platforms affected

  • Azure DevOps
  • GitHub Actions - Standard Runners
  • GitHub Actions - Larger Runners

Runner images affected

  • Ubuntu 20.04
  • Ubuntu 22.04
  • Ubuntu 24.04
  • macOS 12
  • macOS 13
  • macOS 13 Arm64
  • macOS 14
  • macOS 14 Arm64
  • macOS 15
  • macOS 15 Arm64
  • Windows Server 2019
  • Windows Server 2022

Image version and build link

Runner Image
Image: windows-2022
Version: 20241211.1.0

Is it regression?

Version: 20241202.1.0

Expected behavior

NO Failure.

Actual behavior

Credential storage[FAIL] Credential storage

Repro steps

run workflow on latest image:

- id: windows-set-credential-store
  if: runner.os == 'Windows'
  shell: bash
  run: |
      git credential-manager --version
      git credential-manager diagnose

Possible workaround

- id: windows-set-credential-store
  if: runner.os == 'Windows'
  shell: bash
  run: |
    git config --global credential.credentialStore dpapi
@subir0071
Copy link
Contributor

Hi @rolandmosimann - Thanks for bringing this issue to our notice. Will analyze the same and get back.

@subir0071
Copy link
Contributor

Hi @rolandmosimann - We tried reproducing the error at our end, but unfortunately could not.
Both the workflows (Test & workaround) provided above completed successfully without error.

Please see the test run for the test workflow and workaround workflow.

Kindly, Let me know if you are still facing the issue, else we can close the same.
Thanks.

@vidyasagarnimmagaddi vidyasagarnimmagaddi added the awaiting-deployment Code complete; awaiting deployment and/or deployment in progress label Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-deployment Code complete; awaiting deployment and/or deployment in progress bug report
Projects
None yet
Development

No branches or pull requests

4 participants