Add GITHUB_TOKEN in docker buildx build command for custom flavor #6545
+4
−0
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.
Fixes #6544
Proposed Changes
This pull request introduces a minor update to the Docker build process by adding support for passing a secret to the build command.
build_custom_flavorfunction in.automation/build.py, the--secret id=GITHUB_TOKENflag is now included in the Docker build command to allow secure access to GitHub tokens during image creation.Readiness Checklist
Author/Contributor
Reviewing Maintainer
breakingif this is a large fundamental changeautomation,bug,documentation,enhancement,infrastructure, orperformanceNote
Use
docker buildxand passGITHUB_TOKENas a secret when building custom flavor images; update changelog.build_custom_flavorin.automation/build.pyto usedocker buildx buildand pass--secret id=GITHUB_TOKENduring custom flavor image build.CHANGELOG.md.Written by Cursor Bugbot for commit 61feb43. This will update automatically on new commits. Configure here.