Skip to content

Commit e3368ff

Browse files
authored
Merge branch 'main' into se-Build-Install-Dependencies
2 parents f699430 + 609e4f5 commit e3368ff

File tree

3,253 files changed

+229114
-37745
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,253 files changed

+229114
-37745
lines changed

.azure-pipelines/1es-entra-powershell-ci-build.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ resources:
1919
type: git
2020
name: 1ESPipelineTemplates/1ESPipelineTemplates
2121
ref: refs/heads/main
22+
variables:
23+
- group: OData-ESRP-CodeSigning
2224

2325
extends:
2426
template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates
@@ -32,6 +34,14 @@ extends:
3234
name: MSSecurity-1ES-Build-Agents-Pool
3335
image: MSSecurity-1ES-Windows-2022
3436
os: windows
37+
credscan:
38+
suppressionsFile: $(Build.SourcesDirectory)\.config\CredScanSuppressions.json
39+
outputFormat: pre
40+
debugMode: false
41+
batchSize: 16
42+
psscriptanalyzer:
43+
break: false
44+
enabled: true
3545
stages:
3646
- stage: build
3747
jobs:
@@ -42,15 +52,15 @@ extends:
4252
- template: .azure-pipelines/common-templates/install-tools.yml@self
4353
- template: .azure-pipelines/common-templates/security-pre-checks.yml@self
4454

45-
- template: .azure-pipelines/generation-templates/generate_adapter-migrate-1es.yml@self
55+
- template: .azure-pipelines/generation-templates/generate_adapter-1es.yml@self
4656
parameters:
4757
Sign: ${{ parameters.Sign }}
4858

4959
- ${{ if and(eq(parameters.Pack, true), eq(parameters.Sign, true)) }}:
50-
- template: .azure-pipelines/common-templates/esrp/codesign-nuget-migrate.yml@self
60+
- template: .azure-pipelines/common-templates/esrp/codesign-nuget.yml@self
5161
parameters:
5262
FolderPath: "$(Build.ArtifactStagingDirectory)"
53-
Pattern: "Microsoft.Graph.Entra.*.nupkg"
63+
Pattern: "Microsoft.Entra.*.nupkg"
5464
- task: 1ES.PublishBuildArtifacts@1
5565
displayName: Publish Module Artifacts
5666
inputs:
@@ -60,7 +70,7 @@ extends:
6070
displayName: Publish NuGet to preview feed
6171
inputs:
6272
useDotNetTask: false
63-
packagesToPush: $(Build.ArtifactStagingDirectory)/**/Microsoft.Graph.Entra.*.nupkg
73+
packagesToPush: $(Build.ArtifactStagingDirectory)/**/Microsoft.Entra.*.nupkg
6474
packageParentPath: '$(Build.ArtifactStagingDirectory)'
6575
publishVstsFeed: $(PROJECT_NAME)/$(PREVIEW_FEED_NAME)
6676
nuGetFeedType: internal
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Copyright (c) Microsoft Corporation. All rights reserved.
2+
# Licensed under the MIT License.
3+
name: $(SourceBranchName)-PR-$(Date:yyyy-MM-dd)$(Rev:.r)
4+
5+
trigger: none
6+
pr:
7+
branches:
8+
include:
9+
- '*'
10+
11+
resources:
12+
repositories:
13+
- repository: 1ESPipelineTemplates
14+
type: git
15+
name: 1ESPipelineTemplates/1ESPipelineTemplates
16+
ref: refs/heads/main
17+
18+
variables:
19+
- group: OData-ESRP-CodeSigning
20+
21+
extends:
22+
template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates
23+
parameters:
24+
pool:
25+
name: MSSecurity-1ES-Build-Agents-Pool
26+
image: MSSecurity-1ES-Windows-2022
27+
os: windows
28+
sdl:
29+
sourceAnalysisPool:
30+
name: MSSecurity-1ES-Build-Agents-Pool
31+
image: MSSecurity-1ES-Windows-2022
32+
os: windows
33+
credscan:
34+
suppressionsFile: $(Build.SourcesDirectory)\.config\CredScanSuppressions.json
35+
outputFormat: pre
36+
debugMode: false
37+
batchSize: 16
38+
psscriptanalyzer:
39+
break: false
40+
enabled: true
41+
stages:
42+
- stage: Build
43+
jobs:
44+
- job: EntraPowerShellPRBuild
45+
displayName: Entra PowerShell PR Build
46+
steps:
47+
- template: .azure-pipelines/generation-templates/generate_adapter-1es.yml@self
48+
parameters:
49+
Sign: false
50+

.azure-pipelines/1es-entra-powershell-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ extends:
5858
displayName: Publish Nuget package
5959
inputs:
6060
useDotNetTask: false
61-
packagesToPush: '$(System.ArtifactsDirectory)/drop/Microsoft.Graph.Entra*.nupkg'
61+
packagesToPush: '$(System.ArtifactsDirectory)/drop/Microsoft.Entra*.nupkg'
6262
packageParentPath: '$(System.ArtifactsDirectory)'
6363
nuGetFeedType: external
6464
publishFeedCredentials: EntraPowerShell_PSGallery

.azure-pipelines/ci-build-migrate.yml

Lines changed: 0 additions & 54 deletions
This file was deleted.

.azure-pipelines/ci-build.yml

Lines changed: 0 additions & 61 deletions
This file was deleted.

.azure-pipelines/common-templates/esrp/codesign-migrate.yml

Lines changed: 0 additions & 65 deletions
This file was deleted.

.azure-pipelines/common-templates/esrp/codesign-nuget-migrate.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.
Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) Microsoft Corporation. All rights reserved.
1+
# Copyright (c) Microsoft Corporation. All rights reserved.
22
# Licensed under the MIT License.
33

44
parameters:
@@ -10,19 +10,21 @@ parameters:
1010
default: "*.nupkg"
1111

1212
steps:
13-
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@5
14-
displayName: ESRP NuGet CodeSigning
15-
enabled: true
16-
inputs:
17-
ConnectedServiceName: Federated DevX ESRP Managed Identity Connection
18-
AppRegistrationClientId: 65035b7f-7357-4f29-bf25-c5ee5c3949f8
19-
AppRegistrationTenantId: cdc5aeea-15c5-4db6-b079-fcadd2505dc2
20-
AuthAKVName: akv-prod-eastus
21-
AuthCertName: ReferenceLibraryPrivateCert
22-
AuthSignCertName: ReferencePackagePublisherCertificate
13+
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@5
14+
displayName: 'NuGet CodeSigning'
15+
inputs:
16+
ConnectedServiceName: 'EntraPowerShell ESRP CodeSign and NUGET'
17+
AppRegistrationClientId: '$(ODataEsrpAppRegistrationClientId)'
18+
AppRegistrationTenantId: '$(ODataEsrpAppRegistrationTenantId)'
19+
AuthAKVName: $(ODataEsrpAuthAKVName)
20+
AuthCertName: $(ODataEsrpAuthCertName)
21+
AuthSignCertName: $(ODataEsrpAuthSignCertName)
22+
ServiceEndpointUrl: '$(ODataEsrpServiceEndpointUrl)'
2323
FolderPath: ${{ parameters.FolderPath }}
2424
Pattern: ${{ parameters.Pattern }}
25-
signConfigType: inlineSignParams
25+
SessionTimeout: 90
26+
MaxConcurrency: 25
27+
signConfigTYpe: 'inlineSignParams'
2628
inlineOperation: |
2729
[
2830
{
@@ -40,7 +42,3 @@ steps:
4042
"toolVersion": "1.0"
4143
}
4244
]
43-
SessionTimeout: 20
44-
MaxConcurrency: 50
45-
MaxRetryAttempts: 5
46-
PendingAnalysisWaitTimeoutMinutes: 5

0 commit comments

Comments
 (0)