Skip to content

Fix dev SDL failure from CFS access token conversion - #1174

Merged
Francisco Gamino (Francisco-Gamino) merged 1 commit into
devfrom
user/francisco-gamino/fix-cfs-token-sdl
Sep 28, 2026
Merged

Francisco Gamino (Francisco-Gamino) merged 1 commit into
devfrom
user/francisco-gamino/fix-cfs-token-sdl

Conversation

@Francisco-Gamino

Copy link
Copy Markdown
Contributor

Issue describing the changes in this PR

This change fixes the Guardian SDL failure caused by PSAvoidUsingConvertToSecureStringWithPlainText by adding a narrowly scoped suppression to Set-CfsRepository. The conversion is required because Azure Pipelines provides SYSTEM_ACCESSTOKEN as a string, while authenticated CFS upstream package retrieval requires a PSCredential backed by a SecureString. The existing authentication, repository registration, bootstrap versions, and retry behavior remain unchanged. build.ps1 parses successfully and Bootstrap.Tests.ps1 passes 8/8; the PR pipeline's Guardian/SDLSources run provides the authoritative SDL validation.

Pull request checklist

  • My changes do not require documentation changes
    • Otherwise: Documentation issue linked to PR
  • My changes should not be added to the release notes for the next release
    • Otherwise: I've added my notes to release_notes.md
  • My changes do not need to be backported to a previous version
    • Otherwise: Backport tracked by issue/PR #issue_or_pr
  • I have added all required tests (Unit tests, E2E tests)

Additional information

Additional PR information

The CFS repository path converts SYSTEM_ACCESSTOKEN, which Azure Pipelines
supplies as a string, into the SecureString needed to build the PSCredential
that Register-PSRepository and Set-PSRepository accept. PSScriptAnalyzer
reports PSAvoidUsingConvertToSecureStringWithPlainText as an Error and
Guardian treats it as a breaking SDL result, which has been failing the
official dev build.

Add a SuppressMessageAttribute scoped to Set-CfsRepository for that single
rule. Authentication behavior is unchanged: the token is still used only when
present, and builds without it continue to read the pinned bootstrap module
versions anonymously.
@Francisco-Gamino
Francisco Gamino (Francisco-Gamino) merged commit 25fff8e into dev Sep 28, 2026
8 checks passed
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