Skip to content

Issue with GitHub Bot PAT Resulting in "Bad Credential" Errors #4457

@ellahathaway

Description

@ellahathaway

We are currently facing an issue where usage of the GitHub bot PAT results in "bad credential" errors. This problem arises during our release pipeline runs, specifically when attempting to upload PRs or publish the release announcement. It also occurs in the sdk-diff pipeline and license scan pipeline runs when these need to submit a PR to update the baselines and exclusions.

Upon investigation, we found that this problem originated from one of the Personal Access Tokens (PATs) being rotated on Monday (06/03), but the corresponding secret was not updated in the Key Vault at the same time.

Steps taken so far to address this issue include:

Next steps to resolve this issue are:

  • Update the secret in the Key Vault (this is the variable group).
  • Coordinate between A&D and ProdCon on the future management of this secret's rotation
    • There has been confusion due to the manual updating and renaming of this secret, which complicates the process for those managing the secrets manually
    • If this secret has been referenced anywhere with the old name (as it was in this variable group)) and it wasn't updated in the Key Vault, we are likely to encounter issues
    • Likewise, if we reference the new name of the secret, we risk running into problems if the secret name is ever restored back to what the person managing the rotation manually expects it to be.
  • The dotnet-release repository needs to set up a daily or weekly pipeline to manage the cycling of secrets in order to prevent similar issues in the future.
    • The Eng Services Team has mentioned that this responsibility falls on whoever is in charge of the dotnet-release repository

Metadata

Metadata

Assignees

Labels

area-release-infraRelease infrastructure owned by .NET Product Construction

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions