Repository navigation
Fix dev SDL failure from CFS access token conversion - #1174
Merged
Francisco Gamino (Francisco-Gamino) merged 1 commit intoSep 28, 2026
Merged
Francisco Gamino (Francisco-Gamino) merged 1 commit into
Francisco Gamino (Francisco-Gamino) merged 1 commit into
Conversation
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)
requested review from
Fabio Cavalcante (fabiocav) and
Shyju Krishnankutty (kshyju)
September 28, 2026 23:17
Fabio Cavalcante (fabiocav)
approved these changes
Sep 28, 2026
2 of 7 tasks
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.
Issue describing the changes in this PR
This change fixes the Guardian SDL failure caused by
PSAvoidUsingConvertToSecureStringWithPlainTextby adding a narrowly scoped suppression toSet-CfsRepository. The conversion is required because Azure Pipelines providesSYSTEM_ACCESSTOKENas a string, while authenticated CFS upstream package retrieval requires aPSCredentialbacked by aSecureString. The existing authentication, repository registration, bootstrap versions, and retry behavior remain unchanged.build.ps1parses successfully andBootstrap.Tests.ps1passes 8/8; the PR pipeline's Guardian/SDLSources run provides the authoritative SDL validation.Pull request checklist
release_notes.mdAdditional information
Additional PR information