Repository navigation
[ci] Handle uninitialized secrets during log redaction - #32426
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR addresses a security issue in CI/CD pipelines where uninitialized secret tokens were causing problems during log redaction on public builds. The fix wraps secret variable references in single quotes to prevent shell expansion and ensure the log redaction mechanism can properly handle cases where the token doesn't exist.
Key Changes:
- Added single quotes around
$(dotnetbuilds-internal-container-read-token-base64)variable references in pipeline configuration files - This prevents the variable from being expanded when it doesn't exist, allowing the redaction system to handle it gracefully
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| eng/pipelines/arcade/variables.yml | Quoted the secret token variable in a comment documenting runtime source feed configuration |
| eng/common/core-templates/steps/source-build.yml | Quoted the secret token variable in the internal runtime download arguments to prevent expansion issues |
| eng/common/core-templates/steps/publish-logs.yml | Quoted the secret token variable in the log publishing step |
| eng/common/core-templates/post-build/post-build.yml | Quoted the secret token variable in the post-build runtime source feed key parameter |
| eng/common/core-templates/job/publish-build-assets.yml | Quoted the secret token variable in two locations: publish build assets task and additional publishing steps |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Description of Change
Fixes issues on public builds when this token doesn t exist