Skip to content

Commit 0d95999

Browse files
authored
Release 3.0.2 (#2485)
**Changes:** - Dependency updates (#2483) - Documentation updates for AI agents (#2469) - Official release pipeline signing fixes, and update to use the new Mac pool (#2467, #2468) - Fix for Linux SecretService credential MIME type (#2475) - Allow headless use of Linux SecretService (#2474)
2 parents 4e8a96b + 5944129 commit 0d95999

21 files changed

Lines changed: 1141 additions & 394 deletions

‎.azure-pipelines/release.yml‎

Lines changed: 112 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,16 @@ parameters:
5252
- id: macos_x64
5353
jobName: 'macOS (x64)'
5454
runtime: osx-x64
55-
pool: 'Azure Pipelines'
56-
image: macOS-latest
55+
pool: AcesShared
56+
# Use the image override to issue a demand as this is a self-hosted pool
57+
imageOverride: ACES_VM_SharedPool_GoldenGate
5758
os: macos
5859
- id: macos_arm64
5960
jobName: 'macOS (ARM64)'
6061
runtime: osx-arm64
61-
pool: 'Azure Pipelines'
62-
image: macOS-latest
62+
pool: AcesShared
63+
# Use the image override to issue a demand as this is a self-hosted pool
64+
imageOverride: ACES_VM_SharedPool_GoldenGate
6365
os: macos
6466

6567
- name: linux_matrix
@@ -80,6 +82,11 @@ parameters:
8082
image: ubuntu-arm64-ado1es
8183
os: linux
8284

85+
- name: 'dotnet_tool'
86+
type: boolean
87+
default: true
88+
displayName: 'Build .NET Tool'
89+
8390
variables:
8491
- name: 'esrpAppConnectionName'
8592
value: '1ESGitClient-ESRP-App'
@@ -274,8 +281,11 @@ extends:
274281
displayName: ${{ dim.jobName }}
275282
pool:
276283
name: ${{ dim.pool }}
277-
image: ${{ dim.image }}
278284
os: ${{ dim.os }}
285+
${{ if ne(dim.imageOverride, '') }}:
286+
demands: ImageOverride -equals ${{ dim.imageOverride }}
287+
${{ else }}:
288+
image: ${{ dim.image }}
279289
templateContext:
280290
outputs:
281291
- output: pipelineArtifact
@@ -503,86 +513,104 @@ extends:
503513
#
504514
# .NET tool build job
505515
#
506-
- job: dotnet_tool
507-
displayName: '.NET Tool NuGet Package'
508-
# The tool is portable IL and doesn't require platform-specific
509-
# builds. Linux is the fastest hosted agent to provision so use it!
510-
pool:
511-
name: GitClientPME-1ESHostedPool-intel-pc
512-
image: ubuntu-x86_64-ado1es
513-
os: linux
514-
hostArchitecture: amd64
515-
templateContext:
516-
outputs:
517-
- output: pipelineArtifact
518-
targetPath: '$(Build.ArtifactStagingDirectory)/_final'
519-
artifactName: 'dotnet-tool'
520-
steps:
521-
- checkout: self
522-
- task: CopyFiles@2
523-
displayName: 'Use Central Feed Services (CFS)'
524-
inputs:
525-
SourceFolder: '$(Build.SourcesDirectory)/.azure-pipelines'
526-
Contents: 'nuget.config'
527-
TargetFolder: '$(Build.SourcesDirectory)'
528-
Overwrite: true
529-
- task: NuGetAuthenticate@1
530-
displayName: 'Authenticate to NuGet feeds'
531-
- task: UseDotNet@2
532-
displayName: 'Use .NET 10 SDK'
533-
inputs:
534-
packageType: sdk
535-
version: '10.x'
536-
- task: Bash@3
537-
displayName: 'Publish payload'
538-
inputs:
539-
targetType: filePath
540-
filePath: './build/dntool/publish.sh'
541-
arguments: --configuration release
542-
# ESRP-sign (Authenticode) the managed assemblies before packing
543-
- ${{ if eq(parameters.esrp, true) }}:
544-
- template: .azure-pipelines/esrp/sign.yml@self
545-
parameters:
546-
displayName: 'Sign payload'
547-
folderPath: '$(Build.SourcesDirectory)/out/publish/dntool/release'
548-
pattern: '**/*.dll'
549-
inlineOperation: |
550-
[
551-
{
552-
"KeyCode": "CP-230012",
553-
"OperationCode": "SigntoolSign",
554-
"ToolName": "sign",
555-
"ToolVersion": "1.0",
556-
"Parameters": {
557-
"OpusName": "Microsoft",
558-
"OpusInfo": "https://www.microsoft.com",
559-
"FileDigest": "/fd SHA256",
560-
"PageHash": "/NPH",
561-
"TimeStamp": "/tr \"http://rfc3161.gtm.corp.microsoft.com/TSS/HttpTspServer\" /td sha256"
516+
- ${{ if eq(parameters.dotnet_tool, true) }}:
517+
- job: dotnet_tool
518+
displayName: '.NET Tool NuGet Package'
519+
# The tool is portable IL and doesn't require platform-specific
520+
# builds. Linux is the fastest hosted agent to provision so use it!
521+
pool:
522+
name: GitClientPME-1ESHostedPool-intel-pc
523+
image: ubuntu-x86_64-ado1es
524+
os: linux
525+
hostArchitecture: amd64
526+
templateContext:
527+
outputs:
528+
- output: pipelineArtifact
529+
targetPath: '$(Build.ArtifactStagingDirectory)/_final'
530+
artifactName: 'dotnet-tool'
531+
steps:
532+
- checkout: self
533+
- task: CopyFiles@2
534+
displayName: 'Use Central Feed Services (CFS)'
535+
inputs:
536+
SourceFolder: '$(Build.SourcesDirectory)/.azure-pipelines'
537+
Contents: 'nuget.config'
538+
TargetFolder: '$(Build.SourcesDirectory)'
539+
Overwrite: true
540+
- task: NuGetAuthenticate@1
541+
displayName: 'Authenticate to NuGet feeds'
542+
- task: UseDotNet@2
543+
displayName: 'Use .NET 10 SDK'
544+
inputs:
545+
packageType: sdk
546+
version: '10.x'
547+
- task: Bash@3
548+
displayName: 'Publish payload'
549+
inputs:
550+
targetType: filePath
551+
filePath: './build/dntool/publish.sh'
552+
arguments: --configuration release
553+
# ESRP-sign (Authenticode) the managed assemblies before packing
554+
- ${{ if eq(parameters.esrp, true) }}:
555+
- template: .azure-pipelines/esrp/sign.yml@self
556+
parameters:
557+
displayName: 'Sign payload'
558+
folderPath: '$(Build.SourcesDirectory)/out/publish/dntool/release'
559+
pattern: '**/*.dll'
560+
inlineOperation: |
561+
[
562+
{
563+
"KeyCode": "CP-230012",
564+
"OperationCode": "SigntoolSign",
565+
"ToolName": "sign",
566+
"ToolVersion": "1.0",
567+
"Parameters": {
568+
"OpusName": "Microsoft",
569+
"OpusInfo": "https://www.microsoft.com",
570+
"FileDigest": "/fd SHA256",
571+
"PageHash": "/NPH",
572+
"TimeStamp": "/tr \"http://rfc3161.gtm.corp.microsoft.com/TSS/HttpTspServer\" /td sha256"
573+
}
574+
},
575+
{
576+
"KeyCode": "CP-230012",
577+
"OperationCode": "SigntoolVerify",
578+
"ToolName": "sign",
579+
"ToolVersion": "1.0",
580+
"Parameters": {}
562581
}
563-
},
564-
{
565-
"KeyCode": "CP-230012",
566-
"OperationCode": "SigntoolVerify",
567-
"ToolName": "sign",
568-
"ToolVersion": "1.0",
569-
"Parameters": {}
570-
}
571-
]
572-
# Pack the signed payload into the .nupkg
573-
- task: Bash@3
574-
displayName: 'Create NuGet packages'
575-
inputs:
576-
targetType: filePath
577-
filePath: './build/dntool/pack.sh'
578-
arguments: --configuration release
579-
- task: Bash@3
580-
displayName: 'Collect artifacts for publishing'
581-
inputs:
582-
targetType: inline
583-
script: |
584-
mkdir -p $(Build.ArtifactStagingDirectory)/_final
585-
cp $(Build.SourcesDirectory)/out/package/release/*.nupkg $(Build.ArtifactStagingDirectory)/_final
582+
]
583+
# Pack the signed payload into the .nupkg
584+
- task: Bash@3
585+
displayName: 'Create NuGet packages'
586+
inputs:
587+
targetType: filePath
588+
filePath: './build/dntool/pack.sh'
589+
arguments: --configuration release
590+
# ESRP-sign the NuGet package itself
591+
- ${{ if eq(parameters.esrp, true) }}:
592+
- template: .azure-pipelines/esrp/sign.yml@self
593+
parameters:
594+
displayName: 'Sign payload'
595+
folderPath: '$(Build.SourcesDirectory)/out/package/release'
596+
pattern: '**/*.nupkg'
597+
inlineOperation: |
598+
[
599+
{
600+
"KeyCode": "CP-401405",
601+
"OperationCode": "NuGetSign",
602+
"ToolName": "sign",
603+
"ToolVersion": "1.0",
604+
"Parameters": {}
605+
}
606+
]
607+
- task: Bash@3
608+
displayName: 'Collect artifacts for publishing'
609+
inputs:
610+
targetType: inline
611+
script: |
612+
mkdir -p $(Build.ArtifactStagingDirectory)/_final
613+
cp $(Build.SourcesDirectory)/out/package/release/*.nupkg $(Build.ArtifactStagingDirectory)/_final
586614
587615
- stage: release
588616
displayName: 'Release'

‎.vscode/launch.json‎

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,35 @@
55
"version": "0.2.0",
66
"configurations": [
77
{
8-
"name": "Git Credential Manager (get)",
8+
"name": "gcm get",
99
"type": "coreclr",
1010
"request": "launch",
1111
"preLaunchTask": "build",
12-
// If you have changed target frameworks, make sure to update the program path.
13-
"program": "${workspaceFolder}/out/shared/Git-Credential-Manager/bin/Debug/net10.0/git-credential-manager.dll",
12+
"program": "${workspaceFolder}/out/bin/git-credential-manager/debug/git-credential-manager.dll",
1413
"args": ["get"],
15-
"cwd": "${workspaceFolder}/out/shared/Git-Credential-Manager",
14+
"cwd": "${workspaceFolder}",
1615
"console": "integratedTerminal",
1716
"stopAtEntry": false,
1817
},
1918
{
20-
"name": "Git Credential Manager (store)",
19+
"name": "gcm store",
2120
"type": "coreclr",
2221
"request": "launch",
2322
"preLaunchTask": "build",
24-
// If you have changed target frameworks, make sure to update the program path.
25-
"program": "${workspaceFolder}/out/shared/Git-Credential-Manager/bin/Debug/net10.0/git-credential-manager.dll",
23+
"program": "${workspaceFolder}/out/bin/git-credential-manager/debug/git-credential-manager.dll",
2624
"args": ["store"],
27-
"cwd": "${workspaceFolder}/out/shared/Git-Credential-Manager",
25+
"cwd": "${workspaceFolder}",
26+
"console": "integratedTerminal",
27+
"stopAtEntry": false,
28+
},
29+
{
30+
"name": "gcm erase",
31+
"type": "coreclr",
32+
"request": "launch",
33+
"preLaunchTask": "build",
34+
"program": "${workspaceFolder}/out/bin/git-credential-manager/debug/git-credential-manager.dll",
35+
"args": ["erase"],
36+
"cwd": "${workspaceFolder}",
2837
"console": "integratedTerminal",
2938
"stopAtEntry": false,
3039
},

‎.vscode/tasks.json‎

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,21 @@
1111
},
1212
"args": [
1313
"build",
14-
"${workspaceFolder}/Git-Credential-Manager.sln",
14+
"${workspaceFolder}/git-credential-manager.slnx",
1515
],
1616
"problemMatcher": "$msCompile"
1717
},
1818
{
1919
"label": "test",
2020
"command": "dotnet",
21-
"type": "shell",
21+
"type": "process",
2222
"group":{
2323
"kind": "test",
2424
"isDefault": true
2525
},
2626
"args": [
2727
"test",
28-
"${workspaceFolder}/Git-Credential-Manager.sln"
28+
"${workspaceFolder}/git-credential-manager.slnx"
2929
],
3030
"presentation": {
3131
"reveal": "always",
@@ -35,13 +35,13 @@
3535
{
3636
"label": "test with coverage",
3737
"command": "dotnet",
38-
"type": "shell",
38+
"type": "process",
3939
"group": "test",
4040
"args": [
4141
"test",
42-
"${workspaceFolder}/Git-Credential-Manager.sln",
42+
"${workspaceFolder}/git-credential-manager.slnx",
4343
"--collect",
44-
"'XPlat Code Coverage'",
44+
"XPlat Code Coverage",
4545
"--settings",
4646
"${workspaceFolder}/.code-coverage/coverlet.settings.xml"
4747
],
@@ -53,10 +53,13 @@
5353
{
5454
"label": "report coverage - nix",
5555
"command": "dotnet",
56-
"type": "shell",
56+
"type": "process",
5757
"group": "test",
5858
"args": [
59-
"~/.nuget/packages/reportgenerator/*/*/net10.0/ReportGenerator.dll",
59+
"exec",
60+
"--roll-forward",
61+
"Major",
62+
"${env:HOME}/.nuget/packages/reportgenerator/5.3.10/tools/net8.0/ReportGenerator.dll",
6063
"-reports:${workspaceFolder}/**/TestResults/**/coverage.cobertura.xml",
6164
"-targetdir:${workspaceFolder}/out/code-coverage"
6265
],
@@ -68,10 +71,13 @@
6871
{
6972
"label": "report coverage - win",
7073
"command": "dotnet",
71-
"type": "shell",
74+
"type": "process",
7275
"group": "test",
7376
"args": [
74-
"${env:USERROFILE}/.nuget/packages/reportgenerator/*/*/net10.0/ReportGenerator.dll",
77+
"exec",
78+
"--roll-forward",
79+
"Major",
80+
"${env:USERPROFILE}/.nuget/packages/reportgenerator/5.3.10/tools/net8.0/ReportGenerator.dll",
7581
"-reports:${workspaceFolder}/**/TestResults/**/coverage.cobertura.xml",
7682
"-targetdir:${workspaceFolder}/out/code-coverage"
7783
],

0 commit comments

Comments
 (0)