Repository navigation
fix(backstage): GitHub integration and token for publish (#2354) - #2586
Merged
Merged
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Comment on lines
+60
to
+63
| dataFrom: [{extract: {key: fawkes/backstage-github-credentials}}] | ||
| --- | ||
| apiVersion: external-secrets.io/v1 | ||
| kind: ExternalSecret |
Comment on lines
+60
to
+63
| dataFrom: [{extract: {key: fawkes/backstage-github-credentials}}] | ||
| --- | ||
| apiVersion: external-secrets.io/v1 | ||
| kind: ExternalSecret |
Contributor
Contributor
📊 Code Quality Report
📈 Quality Gates✅ Passed: All checks completed successfully 🔧 How to FixRun locally before pushing: make pre-commit-setup # Install pre-commit hooks
make lint # Run all linters
make test-bats # Run shell script tests
pytest --cov=. --cov-report=term-missing # Check coverageSee Code Quality Standards for more details. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Third scaffolder run on AKS (task
a8409433-8e5b-4716-92ad-5ea7f116e3a8,python-service): the render passed andpublish:githubfailed withNo token available for host: github.com. Root cause, from the live cluster:GITHUB_TOKENenv sits in a top-levelextraEnvVars, which the chart ignores (the deployment has no such variable);integrationsblock;backstage-github-credentialsdoes not exist, and nothing provides it.Adds the
github.comintegration toappConfig,GITHUB_TOKENtobackstage.extraEnvVars(optional: true, so a missing Secret cannot stop the portal starting), and an ExternalSecret over OpenBaofawkes/backstage-github-credentials. Refs #2354; does not close it.SECURITY-SENSITIVE: needs manual review. Do not auto-merge. Secrets and an ArgoCD
Applicationmanifest.A person must supply the token
A GitHub token that can create repos cannot be generated here. Recommended: a fine-grained PAT for the owner with Administration and Contents write (Metadata read) on only the repos Backstage may create. Then:
./scripts/put-secret.sh fawkes backstage-github-credentials token=-I did not reuse
tekton-gitops-github-tokenordora-metrics-github-token; they were issued for other jobs.Tests
tests/unit/test_backstage_github_integration.py(3 cases): red first, now green; 22 related tests pass.Judgment calls for review
extraEnvVars(including itsGITHUB_TOKEN,AUTH_GITHUB_*,ARGOCD_*entries) is left alone; fixing it is out of scope and may change behaviour. Worth its own issue.AI-generated; needs human review.
🤖 Generated with Claude Code