Skip to content

[ci] Handle uninitialized secrets during log redaction - #32426

Merged
rmarinho merged 4 commits into
mainfrom
fix-token-issue
Nov 6, 2025
Merged

rmarinho merged 4 commits into
mainfrom
fix-token-issue

Conversation

@rmarinho

@rmarinho rmarinho commented Nov 6, 2025

Copy link
Copy Markdown
Member

Description of Change

Fixes issues on public builds when this token doesn t exist

Copilot AI review requested due to automatic review settings November 6, 2025 13:16
@rmarinho rmarinho added t/housekeeping ♻︎ area-infrastructure CI, Maestro / Coherency, upstream dependencies/versions labels Nov 6, 2025

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@rmarinho
rmarinho merged commit 98b100d into main Nov 6, 2025
@rmarinho
rmarinho deleted the fix-token-issue branch November 6, 2025 22:19
@github-actions github-actions Bot locked and limited conversation to collaborators Dec 7, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-infrastructure CI, Maestro / Coherency, upstream dependencies/versions t/housekeeping ♻︎

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants