Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion eng/pipelines/azure-pipelines-codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ jobs:
inputs:
targetType: 'inline'
script: |
npm install -g @vscode/vsce@3.7.1
# Azure Identity 4.13.2 depends on @azure/core-process, which is not yet
# available in dotnet-public-npm. Remove this pin after 1.0.0 is mirrored.
npm install -g @vscode/vsce@3.7.1 @azure/identity@4.13.1
vsce --version
workingDirectory: '$(Build.SourcesDirectory)'

Expand Down
4 changes: 3 additions & 1 deletion eng/pipelines/azure-pipelines-unofficial.yml
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,9 @@ extends:
inputs:
targetType: 'inline'
script: |
npm install -g @vscode/vsce@3.7.1
# Azure Identity 4.13.2 depends on @azure/core-process, which is not yet
# available in dotnet-public-npm. Remove this pin after 1.0.0 is mirrored.
npm install -g @vscode/vsce@3.7.1 @azure/identity@4.13.1
vsce --version
workingDirectory: '$(Build.SourcesDirectory)'

Expand Down
13 changes: 6 additions & 7 deletions eng/pipelines/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -505,13 +505,12 @@ extends:
# not recognized."
enableMicrobuild: true
enablePublishUsingPipelines: true
# Asset_Registry_Publish (BAR publish) needs MaestroAccessToken from
# the Publish-Build-Assets variable group, which is only loaded on
# main / release / internal-release branches because of the AzDO
# ACL on that group. Skip the publish job entirely on contributor
# branches so jobs.yml does not inject Asset_Registry_Publish and
# fail at runtime for a missing token (and so the assemble stage
# does not trip an additional 1ES Branch control checkpoint).
# Asset_Registry_Publish (BAR publish) loads Publish-Build-Assets at
# job scope for MaestroAccessToken. The group has an AzDO ACL for
# main / release / internal-release branches, so skip the publish
# job entirely on contributor branches. This avoids injecting a job
# that cannot load its token and prevents another 1ES Branch control
# checkpoint on the assemble stage.
${{ if or(eq(variables['Build.SourceBranch'], 'refs/heads/main'), startsWith(variables['Build.SourceBranch'], 'refs/heads/release/'), startsWith(variables['Build.SourceBranch'], 'refs/heads/internal/release/')) }}:
enablePublishBuildAssets: true
publishAssetsImmediately: true
Expand Down
11 changes: 4 additions & 7 deletions eng/pipelines/common-variables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ variables:
value: True
- name: _SignType
value: real
# Publish-Build-Assets provides: MaestroAccessToken, BotAccount-dotnet-maestro-bot-PAT
# DotNet-HelixApi-Access provides: HelixApiAccessToken
# SDL_Settings provides Guardian/SDL tooling credentials
#
Expand All @@ -41,13 +40,11 @@ variables:
# scope causes 1ES to inject a per-stage Branch control check that blocks
# every stage on contributor branches before any work can start.
#
# Only the BAR publish job (assemble stage's Asset_Registry_Publish) and
# helix telemetry actually need these tokens, and neither runs as a real
# publish on a contributor branch. Skip the group load when we're not on
# a branch the ACLs accept so manual / non-PR builds on ankj/* etc. can
# still validate the rest of the pipeline (including signing).
# Helix telemetry and Guardian/SDL tooling use these tokens. Skip the
# group load when we're not on a branch the ACLs accept so manual /
# non-PR builds on ankj/* etc. can still validate the rest of the
# pipeline (including signing).
- ${{ if or(eq(variables['Build.SourceBranch'], 'refs/heads/main'), startsWith(variables['Build.SourceBranch'], 'refs/heads/release/'), startsWith(variables['Build.SourceBranch'], 'refs/heads/internal/release/')) }}:
- group: Publish-Build-Assets
- group: DotNet-HelixApi-Access
- group: SDL_Settings
- name: _InternalBuildArgs
Expand Down
5 changes: 4 additions & 1 deletion eng/pipelines/release-publish-nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2178,7 +2178,10 @@ extends:
- pwsh: |
$ErrorActionPreference = 'Stop'

npm install -g @vscode/vsce@3.7.1 --registry https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public-npm/npm/registry/
# Azure Identity 4.13.2 depends on @azure/core-process, which is not yet
# available in dotnet-public-npm and requires Node 22. Remove this pin after
# 1.0.0 is mirrored and this job is upgraded to Node 22.
npm install -g @vscode/vsce@3.7.1 @azure/identity@4.13.1 --registry https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public-npm/npm/registry/
vsce --version
displayName: 'Install vsce'

Expand Down
4 changes: 3 additions & 1 deletion eng/pipelines/templates/build_extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ jobs:
inputs:
targetType: 'inline'
script: |
npm install -g @vscode/vsce@3.7.1
# Azure Identity 4.13.2 depends on @azure/core-process, which is not yet
# available in dotnet-public-npm. Remove this pin after 1.0.0 is mirrored.
npm install -g @vscode/vsce@3.7.1 @azure/identity@4.13.1
vsce --version
workingDirectory: '$(Build.SourcesDirectory)'

Expand Down
Loading