diff --git a/.azure-pipelines/config/credscan/credscan-suppressions.json b/.azure-pipelines/config/credscan/credscan-suppressions.json
index bdea9194004..5f28ef7e574 100644
--- a/.azure-pipelines/config/credscan/credscan-suppressions.json
+++ b/.azure-pipelines/config/credscan/credscan-suppressions.json
@@ -5,6 +5,24 @@
"placeholder": "pa$$w0rd",
"_justification": "[Applications] hard code password in application password HTTP example"
},
+ {
+ "placeholder": "P@55w0rd",
+ "_justification": "[AuthenticationTests] hard code password in AuthenticationTest for self signed certificate"
+ },
+ {
+ "file": [
+ "src\\Authentication\\Authentication\\test\\Get-MgContext.Tests.ps1",
+ "src\\Authentication\\Authentication.Test\\Helpers\\AuthenticationHelpersTests.cs",
+ "src\\Authentication\\Authentication.Test\\Helpers\\AuthenticationHelpersTests.cs"
+ ],
+ "_justification": "[Authentication] Examples contain random values recognized as secret"
+ },
+ {
+ "file": [
+ "autorest.powershell\\docs\\samples\\timeswire\\readme.md"
+ ],
+ "_justification": "[AutoRest] Examples contain random values recognized as secret"
+ },
{
"file": [
"src\\Applications\\beta\\examples\\New-MgBetaServicePrincipalPasswordSingleSignOnCredentials.md",
@@ -29,6 +47,12 @@
"src\\DeviceManagement.Actions\\beta\\examples\\Update-MgBetaDeviceManagementVirtualEndpointOnPremisConnectionAdDomainPassword.md"
],
"_justification": "[DeviceManagement.Actions] Examples contain random values recognized as secret"
+ },
+ {
+ "file": [
+ "tools\\Tests\\loadEnv.md"
+ ],
+ "_justification": "[ToolsTest] Examples contain random values recognized as secret"
}
]
}
diff --git a/.azure-pipelines/config/policheck/policheck-exclusions.xml b/.azure-pipelines/config/policheck/policheck-exclusions.xml
index f4be34cafab..5bb37092719 100644
--- a/.azure-pipelines/config/policheck/policheck-exclusions.xml
+++ b/.azure-pipelines/config/policheck/policheck-exclusions.xml
@@ -3,9 +3,9 @@
- openApiDocs|docs\exports|src\.*\examples
+ openApiDocs|docs\exports|src\.*\examples|src\.*\bin|src\.*\generated
-
+ AuthenticationHelpersTests.cs
diff --git a/.azure-pipelines/weekly-examples-update.yml b/.azure-pipelines/weekly-examples-update.yml
index 8c275cabd00..f7aafb15254 100644
--- a/.azure-pipelines/weekly-examples-update.yml
+++ b/.azure-pipelines/weekly-examples-update.yml
@@ -1,15 +1,18 @@
-# Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
-
-trigger: none # disable triggers based on commits.
-pr: none # disable as a PR gate.
+# This Yaml Document has been converted by ESAI Yaml Pipeline Conversion Tool.
+# Please make sure to check all the converted content, it is your team's responsibility to make sure that the pipeline is still valid and functions as expected.
+# This pipeline will be extended to the OneESPT template
+# If you are not using the E+D shared hosted pool with windows-2022, replace the pool section with your hosted pool, os, and image name. If you are using a Linux image, you must specify an additional windows image for SDL: https://eng.ms/docs/cloud-ai-platform/devdiv/one-engineering-system-1es/1es-docs/1es-pipeline-templates/features/sdlanalysis/overview#how-to-specify-a-windows-pool-for-the-sdl-source-analysis-stage
+# The Task 'PublishBuildArtifacts@1' has been converted to an output named 'Publish Examples to be reviewed as artifact' in the templateContext section.
+trigger: none
+pr: none
name: 'PowerShellExamplesUpdateV2 Check'
schedules:
- - cron: "0 3 * * FRI" # every Friday at 3AM UTC (off hours for Redmond, Nairobi and Montréal)
- displayName: 'PowerShellExamplesUpdateV2'
- branches:
- include:
- - dev
- always: true
+- cron: "0 3 * * FRI"
+ displayName: 'PowerShellExamplesUpdateV2'
+ branches:
+ include:
+ - dev
+ always: true
parameters:
- name: PipelineTimeout
displayName: PipelineTimeout
@@ -18,77 +21,85 @@ parameters:
- name: BuildAgent
displayName: Build Agent
default: 1es-windows-ps-compute
-
resources:
- repositories:
- - repository: msgraph-sdk-powershell
- type: github
- endpoint: MicrosoftDocs
- name: microsoftgraph/msgraph-sdk-powershell
- ref: dev
-
-jobs:
-- job: PowerShellExamplesUpdateV2
- pool:
- name: ${{ parameters.BuildAgent }}
- timeoutInMinutes: ${{ parameters.PipelineTimeout }}
- steps:
- - template: ./common-templates/install-sdk.yml
- - task: PowerShell@2
- name: "ComputeBranch"
- displayName: "Compute weekly examples update branch name"
- inputs:
- targetType: inline
- script: |
- $branch = "{0}/{1}" -f "WeeklyExamplesUpdate", (Get-Date -Format yyyyMMddHHmm)
- Write-Host "Compute branch: $branch"
- Write-Host "##vso[task.setvariable variable=WeeklyExamplesBranch;isOutput=true]$branch"
-
- - task: Bash@3
- displayName: "Create weekly examples branch"
- inputs:
- targetType: inline
- script: |
- git status
- git branch $(ComputeBranch.WeeklyExamplesBranch)
- git checkout $(ComputeBranch.WeeklyExamplesBranch)
- git status
-
- - task: PowerShell@2
- displayName: 'Import Examples From API reference - V2'
- continueOnError: false
- inputs:
- targetType: 'filePath'
- pwsh: true
- filePath: tools\ImportExamples.ps1
-
- - task: PublishBuildArtifacts@1
- displayName: 'Publish Examples to be reviewed as artifact'
- inputs:
- PathtoPublish: 'examplesreport'
- ArtifactName: 'ExamplesToBeReviewed'
- publishLocation: 'Container'
- # StoreAsTar: true
-
- - task: PowerShell@2
- displayName: Pushing to github
- env:
- GITHUB_TOKEN: $(GITHUB_TOKEN)
- inputs:
- targetType: inline
- pwsh: true
- script: |
- git config --global user.email "GraphTooling@service.microsoft.com"
- git config --global user.name "Microsoft Graph DevX Tooling"
- git status
- git add .
- git commit -m "Updating examples"
- git push --set-upstream https://$(GITHUB_TOKEN)@github.com/microsoftgraph/msgraph-sdk-powershell.git $(ComputeBranch.WeeklyExamplesBranch)
- git status
-
- - template: ./common-templates/create-pr.yml
- parameters:
- BaseBranch: "dev"
- TargetBranch: $(ComputeBranch.WeeklyExamplesBranch)
- Title: "[v2] Examples Update"
- Body: "This pull request was automatically created by Azure Pipelines. **Important** Check for unexpected deletions or changes in this PR."
\ No newline at end of file
+ repositories:
+ - repository: msgraph-sdk-powershell
+ type: github
+ endpoint: MicrosoftDocs
+ name: microsoftgraph/msgraph-sdk-powershell
+ ref: dev
+ - repository: 1ESPipelineTemplates
+ type: git
+ name: 1ESPipelineTemplates/1ESPipelineTemplates
+ ref: refs/tags/release
+extends:
+ template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates
+ parameters:
+ pool: $(BuildAgent)
+ sdl:
+ credscan:
+ suppressionsFile: $(Build.SourcesDirectory)/.azure-pipelines/config/credscan/credscan-suppressions.json
+ policheck:
+ exclusionFile: $(Build.SourcesDirectory)/.azure-pipelines/config/policheck/policheck-exclusions.xml
+ customBuildTags:
+ - ES365AIMigrationTooling
+ stages:
+ - stage: stage
+ jobs:
+ - job: PowerShellExamplesUpdateV2
+ timeoutInMinutes: ${{ parameters.PipelineTimeout }}
+ templateContext:
+ outputs:
+ - output: pipelineArtifact
+ displayName: 'Publish Examples to be reviewed as artifact'
+ targetPath: 'examplesreport'
+ artifactName: 'ExamplesToBeReviewed'
+ publishLocation: 'Container'
+ steps:
+ - template: .azure-pipelines/common-templates/install-sdk.yml@self
+ - task: PowerShell@2
+ name: "ComputeBranch"
+ displayName: "Compute weekly examples update branch name"
+ inputs:
+ targetType: inline
+ script: |
+ $branch = "{0}/{1}" -f "WeeklyExamplesUpdate", (Get-Date -Format yyyyMMddHHmm)
+ Write-Host "Compute branch: $branch"
+ Write-Host "##vso[task.setvariable variable=WeeklyExamplesBranch;isOutput=true]$branch"
+ - task: Bash@3
+ displayName: "Create weekly examples branch"
+ inputs:
+ targetType: inline
+ script: |
+ git status
+ git branch $(ComputeBranch.WeeklyExamplesBranch)
+ git checkout $(ComputeBranch.WeeklyExamplesBranch)
+ git status
+ - task: PowerShell@2
+ displayName: 'Import Examples From API reference - V2'
+ continueOnError: false
+ inputs:
+ targetType: 'filePath'
+ pwsh: true
+ filePath: tools\ImportExamples.ps1
+ - task: PowerShell@2
+ displayName: Pushing to github
+ env:
+ GITHUB_TOKEN: $(GITHUB_TOKEN)
+ inputs:
+ targetType: inline
+ pwsh: true
+ script: |
+ git config --global user.email "GraphTooling@service.microsoft.com"
+ git config --global user.name "Microsoft Graph DevX Tooling"
+ git status
+ git add .
+ git commit -m "Updating examples"
+ git push --set-upstream https://$(GITHUB_TOKEN)@github.com/microsoftgraph/msgraph-sdk-powershell.git $(ComputeBranch.WeeklyExamplesBranch)
+ git status
+ - template: .azure-pipelines/common-templates/create-pr.yml@self
+ parameters:
+ BaseBranch: "dev"
+ TargetBranch: $(ComputeBranch.WeeklyExamplesBranch)
+ Title: "[v2] Examples Update"
+ Body: "This pull request was automatically created by Azure Pipelines. **Important** Check for unexpected deletions or changes in this PR."
\ No newline at end of file
diff --git a/.azure-pipelines/weekly-generation.yml b/.azure-pipelines/weekly-generation.yml
index 9b54c3eb495..48e936523f2 100644
--- a/.azure-pipelines/weekly-generation.yml
+++ b/.azure-pipelines/weekly-generation.yml
@@ -1,170 +1,189 @@
-# Copyright (c) Microsoft Corporation. All rights reserved.
-# Licensed under the MIT License.
-
+# This Yaml Document has been converted by ESAI Yaml Pipeline Conversion Tool.
+# Please make sure to check all the converted content, it is your team's responsibility to make sure that the pipeline is still valid and functions as expected.
+# This pipeline will be extended to the OneESPT template
+# If you are not using the E+D shared hosted pool with windows-2022, replace the pool section with your hosted pool, os, and image name. If you are using a Linux image, you must specify an additional windows image for SDL: https://eng.ms/docs/cloud-ai-platform/devdiv/one-engineering-system-1es/1es-docs/1es-pipeline-templates/features/sdlanalysis/overview#how-to-specify-a-windows-pool-for-the-sdl-source-analysis-stage
+# The Task 'PublishBuildArtifacts@1' has been converted to an output named 'Publish Module Artifacts' in the templateContext section.
+# The Task 'NuGetCommand@2' has been converted to an output named 'Publish NuGet to feed' in the templateContext section.
+# Output added to job "MsGraphPsSdkWeeklyGeneration" with YAML conditionals extracted using AI. Review this expression against the originating file for correctness.
+# Output added to job "MsGraphPsSdkWeeklyGeneration" with YAML conditionals extracted using AI. Review this expression against the originating file for correctness.
name: $(BuildDefinitionName)_$(SourceBranchName)_$(Date:yyyyMMdd)$(Rev:.r)
-
parameters:
- - name: BuildAgent
- displayName: Build Agent
- default: 1es-windows-ps-compute
- - name: BaseBranch
- displayName: Base Branch
- default: dev
- - name: GenerationBranch
- displayName: Generation branch
- default: v2/generation
- - name: SkipForceRefresh
- displayName: Skip Force Refresh
- default: false
- type: boolean
- - name: Test
- type: boolean
- default: true
- - name: Pack
- type: boolean
- default: true
- - name: Sign
- type: boolean
- default: true
- - name: CreatePullRequest
- type: boolean
- default: true
- - name: SkipOpenAPIDocsDownload
- displayName: Skip OpenAPI Docs Download
- default: false
- type: boolean
-
+- name: BuildAgent
+ displayName: Build Agent
+ default: 1es-windows-ps-compute
+- name: BaseBranch
+ displayName: Base Branch
+ default: dev
+- name: GenerationBranch
+ displayName: Generation branch
+ default: v2/generation
+- name: SkipForceRefresh
+ displayName: Skip Force Refresh
+ default: false
+ type: boolean
+- name: Test
+ type: boolean
+ default: true
+- name: Pack
+ type: boolean
+ default: true
+- name: Sign
+ type: boolean
+ default: true
+- name: CreatePullRequest
+ type: boolean
+ default: true
+- name: SkipOpenAPIDocsDownload
+ displayName: Skip OpenAPI Docs Download
+ default: false
+ type: boolean
variables:
Branch: "WeeklyApiRefresh"
BaseBranch: ${{ parameters.BaseBranch }}
GenerationBranch: ${{ parameters.GenerationBranch }}
BuildAgent: ${{ parameters.BuildAgent }}
SkipForceRefresh: ${{ parameters.SkipForceRefresh }}
-
-pool: $(BuildAgent)
trigger: none
pr: none
schedules:
- - cron: "0 12 * * TUE" # Run every Tuesday at noon UTC
- displayName: "PS SDK Weekly Refresh"
- branches:
- include:
- - dev
- always: true
-jobs:
- - job: RefreshOpenAPIDocuments
- displayName: Refresh OpenApi documents
- timeoutInMinutes: 240
+- cron: "0 12 * * TUE"
+ displayName: "PS SDK Weekly Refresh"
+ branches:
+ include:
+ - dev
+ always: true
+resources:
+ repositories:
+ - repository: 1ESPipelineTemplates
+ type: git
+ name: 1ESPipelineTemplates/1ESPipelineTemplates
+ ref: refs/tags/release
+extends:
+ template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates
+ parameters:
pool: $(BuildAgent)
- steps:
- - template: common-templates/download-openapi-docs.yml
- parameters:
- Branch: $(Branch)
- BaseBranch: $(BaseBranch)
- BuildAgent: $(BuildAgent)
- SkipForceRefresh: $(SkipForceRefresh)
- SkipOpenAPIDocsDownload: ${{ parameters.SkipOpenAPIDocsDownload }}
-
- - job: MsGraphPsSdkWeeklyGeneration
- dependsOn: RefreshOpenAPIDocuments
- displayName: Microsoft Graph PowerShell SDK Generation
- condition: and(succeeded(), ne(dependencies.RefreshOpenAPIDocuments.outputs['OpenAPIDocDiff.ModulesWithChanges'], ''))
- timeoutInMinutes: 840
- variables:
- WeeklyBranch: $[ dependencies.RefreshOpenAPIDocuments.outputs['ComputeBranch.WeeklyBranch'] ]
- steps:
- - template: ./common-templates/checkout.yml
- parameters:
- TargetBranch: $(WeeklyBranch)
- - template: ./common-templates/install-tools.yml
- - template: ./common-templates/security-pre-checks.yml
- - template: ./generation-templates/authentication-module.yml
- parameters:
- Test: ${{ parameters.Test }}
- Pack: ${{ parameters.Pack }}
- Sign: ${{ parameters.Sign }}
- - template: ./generation-templates/workload-modules.yml
- parameters:
- Test: ${{ parameters.Test }}
- Pack: ${{ parameters.Pack }}
- Sign: ${{ parameters.Sign }}
- - template: ./generation-templates/meta-module.yml
- parameters:
- Test: ${{ parameters.Test }}
- Pack: ${{ parameters.Pack }}
- Sign: ${{ parameters.Sign }}
- - ${{ if and(eq(parameters.Pack, true), eq(parameters.Sign, true)) }}:
- - template: ./common-templates/esrp/codesign-nuget.yml
- parameters:
- FolderPath: "$(Build.ArtifactStagingDirectory)"
- Pattern: "Microsoft.Graph*.nupkg"
- - task: PublishBuildArtifacts@1
- displayName: Publish Module Artifacts
- inputs:
- PathtoPublish: "$(Build.ArtifactStagingDirectory)"
- ArtifactName: "drop"
+ sdl:
+ credscan:
+ suppressionsFile: $(Build.SourcesDirectory)/.azure-pipelines/config/credscan/credscan-suppressions.json
+ policheck:
+ exclusionFile: $(Build.SourcesDirectory)/.azure-pipelines/config/policheck/policheck-exclusions.xml
+ customBuildTags:
+ - ES365AIMigrationTooling
+ stages:
+ - stage: stage
+ jobs:
+ - job: RefreshOpenAPIDocuments
+ displayName: Refresh OpenApi documents
+ timeoutInMinutes: 1200
+ steps:
+ - template: .azure-pipelines/common-templates/download-openapi-docs.yml@self
+ parameters:
+ Branch: $(Branch)
+ BaseBranch: $(BaseBranch)
+ BuildAgent: $(BuildAgent)
+ SkipForceRefresh: $(SkipForceRefresh)
+ SkipOpenAPIDocsDownload: ${{ parameters.SkipOpenAPIDocsDownload }}
+ - job: MsGraphPsSdkWeeklyGeneration
+ dependsOn: RefreshOpenAPIDocuments
+ displayName: Microsoft Graph PowerShell SDK Generation
+ condition: and(succeeded(), ne(dependencies.RefreshOpenAPIDocuments.outputs['OpenAPIDocDiff.ModulesWithChanges'], ''))
+ timeoutInMinutes: 840
+ variables:
+ WeeklyBranch: $[ dependencies.RefreshOpenAPIDocuments.outputs['ComputeBranch.WeeklyBranch'] ]
+ templateContext:
+ outputs:
+ - ${{ if and(eq(parameters.Pack, true), eq(parameters.Sign, true)) }}:
+ - output: pipelineArtifact
+ displayName: 'Publish Module Artifacts'
+ targetPath: "$(Build.ArtifactStagingDirectory)"
+ artifactName: "drop"
publishLocation: "Container"
- - task: NuGetCommand@2
- displayName: Publish NuGet to feed
- inputs:
- command: push
+ - ${{ if and(eq(parameters.Pack, true), eq(parameters.Sign, true)) }}:
+ - output: nuget
+ displayName: 'Publish NuGet to feed'
+ packageParentPath: '$(Build.ArtifactStagingDirectory)'
packagesToPush: $(Build.ArtifactStagingDirectory)/**/Microsoft.Graph.*.nupkg
publishVstsFeed: $(PROJECT_NAME)/$(FEED_NAME)
allowPackageConflicts: true
- - template: ./generation-templates/generate-command-metadata.yml
- - template: ./common-templates/security-post-checks.yml
- - ${{ if eq(parameters.CreatePullRequest, true) }}:
- - template: common-templates/create-pr.yml
+ steps:
+ - template: .azure-pipelines/common-templates/checkout.yml@self
+ parameters:
+ TargetBranch: $(WeeklyBranch)
+ - template: .azure-pipelines/common-templates/install-tools.yml@self
+ - template: .azure-pipelines/common-templates/security-pre-checks.yml@self
+ - template: .azure-pipelines/generation-templates/authentication-module.yml@self
+ parameters:
+ Test: ${{ parameters.Test }}
+ Pack: ${{ parameters.Pack }}
+ Sign: ${{ parameters.Sign }}
+ - template: .azure-pipelines/generation-templates/workload-modules.yml@self
+ parameters:
+ Test: ${{ parameters.Test }}
+ Pack: ${{ parameters.Pack }}
+ Sign: ${{ parameters.Sign }}
+ - template: .azure-pipelines/generation-templates/meta-module.yml@self
+ parameters:
+ Test: ${{ parameters.Test }}
+ Pack: ${{ parameters.Pack }}
+ Sign: ${{ parameters.Sign }}
+ - ${{ if and(eq(parameters.Pack, true), eq(parameters.Sign, true)) }}:
+ - template: .azure-pipelines/common-templates/esrp/codesign-nuget.yml@self
+ parameters:
+ FolderPath: "$(Build.ArtifactStagingDirectory)"
+ Pattern: "Microsoft.Graph*.nupkg"
+ - template: .azure-pipelines/generation-templates/generate-command-metadata.yml@self
+ - template: .azure-pipelines/common-templates/security-post-checks.yml@self
+ - ${{ if eq(parameters.CreatePullRequest, true) }}:
+ - template: .azure-pipelines/common-templates/create-pr.yml@self
parameters:
BaseBranch: $(BaseBranch)
TargetBranch: $(WeeklyBranch)
Title: "[v2] Weekly OpenApiDocs Refresh"
Body: "This pull request was automatically created by Azure Pipelines. **Important** Check for unexpected deletions or changes in this PR."
- # Push SDK artifacts to generation branch.
- - task: PowerShell@2
- name: "ComputeGenerationBranch"
- displayName: "Compute weekly generation branch name"
- inputs:
- targetType: inline
- script: |
- $branch = "{0}/{1}" -f "WeeklyGeneration", (Get-Date -Format yyyyMMddHHmm)
- Write-Host "##vso[task.setvariable variable=WeeklyGenerationBranch;isOutput=true]$branch"
- - task: Bash@3
- displayName: "Create weekly generation branch"
- inputs:
- targetType: inline
- script: |
- git status
- git branch $(ComputeGenerationBranch.WeeklyGenerationBranch)
- git checkout $(ComputeGenerationBranch.WeeklyGenerationBranch)
- git status
- - task: Bash@3
- displayName: Commit Generated SDK artifacts
- enabled: true
- env:
- GITHUB_TOKEN: $(GITHUB_TOKEN)
- inputs:
- targetType: inline
- script: |
- git add .
- git commit -m 'Adds generated module artifacts'
- git push "https://$(GITHUB_TOKEN)@github.com/microsoftgraph/msgraph-sdk-powershell.git"
- git status
- - task: Bash@3
- displayName: Sync with generation branch
- enabled: true
- env:
- GITHUB_TOKEN: $(GITHUB_TOKEN)
- inputs:
- targetType: inline
- script: |
- git merge $(GenerationBranch) -s ours
- git push "https://$(GITHUB_TOKEN)@github.com/microsoftgraph/msgraph-sdk-powershell.git"
- git status
- - ${{ if eq(parameters.CreatePullRequest, true) }}:
- - template: common-templates/create-pr.yml
+ - task: PowerShell@2
+ name: "ComputeGenerationBranch"
+ displayName: "Compute weekly generation branch name"
+ inputs:
+ targetType: inline
+ script: |
+ $branch = "{0}/{1}" -f "WeeklyGeneration", (Get-Date -Format yyyyMMddHHmm)
+ Write-Host "##vso[task.setvariable variable=WeeklyGenerationBranch;isOutput=true]$branch"
+ - task: Bash@3
+ displayName: "Create weekly generation branch"
+ inputs:
+ targetType: inline
+ script: |
+ git status
+ git branch $(ComputeGenerationBranch.WeeklyGenerationBranch)
+ git checkout $(ComputeGenerationBranch.WeeklyGenerationBranch)
+ git status
+ - task: Bash@3
+ displayName: Commit Generated SDK artifacts
+ enabled: true
+ env:
+ GITHUB_TOKEN: $(GITHUB_TOKEN)
+ inputs:
+ targetType: inline
+ script: |
+ git add .
+ git commit -m 'Adds generated module artifacts'
+ git push "https://$(GITHUB_TOKEN)@github.com/microsoftgraph/msgraph-sdk-powershell.git"
+ git status
+ - task: Bash@3
+ displayName: Sync with generation branch
+ enabled: true
+ env:
+ GITHUB_TOKEN: $(GITHUB_TOKEN)
+ inputs:
+ targetType: inline
+ script: |
+ git merge $(GenerationBranch) -s ours
+ git push "https://$(GITHUB_TOKEN)@github.com/microsoftgraph/msgraph-sdk-powershell.git"
+ git status
+ - ${{ if eq(parameters.CreatePullRequest, true) }}:
+ - template: .azure-pipelines/common-templates/create-pr.yml@self
parameters:
BaseBranch: $(GenerationBranch)
TargetBranch: $(ComputeGenerationBranch.WeeklyGenerationBranch)
Title: "[v2] Weekly Generated Module Artifacts"
- Body: "This pull request was automatically created by Azure Pipelines. **Important** Check for unexpected deletions or changes in this PR."
+ Body: "This pull request was automatically created by Azure Pipelines. **Important** Check for unexpected deletions or changes in this PR."
\ No newline at end of file
diff --git a/src/Authentication/Authentication.Test/Helpers/AuthenticationHelpersTests.cs b/src/Authentication/Authentication.Test/Helpers/AuthenticationHelpersTests.cs
index d9dbc26e8be..e337dae06a7 100644
--- a/src/Authentication/Authentication.Test/Helpers/AuthenticationHelpersTests.cs
+++ b/src/Authentication/Authentication.Test/Helpers/AuthenticationHelpersTests.cs
@@ -324,6 +324,8 @@ private static X509Certificate2 CreateAndStoreSelfSignedCert(string certName, St
///
///
///
+
+ #pragma warning disable IA5352
private static X509Certificate2 CreateSelfSignedCert(string certName)
{
ECDsa ecdsaKey = ECDsa.Create();
diff --git a/src/Authentication/Authentication/test/Get-MgContext.Tests.ps1 b/src/Authentication/Authentication/test/Get-MgContext.Tests.ps1
index 2cd35fb2e0b..3fcedc75409 100644
--- a/src/Authentication/Authentication/test/Get-MgContext.Tests.ps1
+++ b/src/Authentication/Authentication/test/Get-MgContext.Tests.ps1
@@ -1,7 +1,8 @@
# ------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
# ------------------------------------------------------------------------------
-
+[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingConvertToSecureStringWithPlainText', '', Justification='Just an example for testing purposes.')]
+param()
BeforeAll {
$ModuleName = "Microsoft.Graph.Authentication"
$ModulePath = Join-Path $PSScriptRoot "..\artifacts\$ModuleName.psd1"
diff --git a/tools/Tests/loadEnv.ps1 b/tools/Tests/loadEnv.ps1
index e9d8834c948..5bacbb633ea 100644
--- a/tools/Tests/loadEnv.ps1
+++ b/tools/Tests/loadEnv.ps1
@@ -11,7 +11,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# ----------------------------------------------------------------------------------
-
+[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingConvertToSecureStringWithPlainText', '', Justification='Just an example for testing purposes.')]
+param()
if ($TestMode -eq 'live' -or $TestMode -eq 'record') {
Connect-MgGraph -ClientId $env:testApp_clientId -TenantId $env:testApp_tenantId -CertificateThumbprint $env:testApp_certThumbprint
}