Skip to content

fix: Show Errors from Github#4753

Merged
Skarlso merged 4 commits intoexternal-secrets:mainfrom
Alexander-Cairns:fix-github-errors
May 8, 2025
Merged

fix: Show Errors from Github#4753
Skarlso merged 4 commits intoexternal-secrets:mainfrom
Alexander-Cairns:fix-github-errors

Conversation

@Alexander-Cairns
Copy link
Copy Markdown
Contributor

@Alexander-Cairns Alexander-Cairns commented May 8, 2025

Problem Statement

The Github generator does not return Github api errors when it fails to generate a token.

Related Issue

No linked issue

Proposed Changes

Adds a check on the status code and returns an error with the Github error.

Checklist

  • I have read the contribution guidelines
  • All commits are signed with git commit --signoff
  • My changes have reasonable test coverage
  • All tests pass with make test (Some tests were failing before I made any changes, the same tests are failing after my changes)
  • I ensured my PR is ready for review with make reviewable

Signed-off-by: Alexander Cairns <alexandercairns@discoverygarden.ca>
@Alexander-Cairns Alexander-Cairns requested a review from a team as a code owner May 8, 2025 14:55
@Alexander-Cairns Alexander-Cairns requested a review from Skarlso May 8, 2025 14:55
Signed-off-by: Alexander Cairns <alexandercairns@discoverygarden.ca>
@Skarlso Skarlso merged commit 7654d22 into external-secrets:main May 8, 2025
2 checks passed
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented May 8, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants