Skip to content

1.7.0 Release #847

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 32 commits into from
Sep 8, 2021
Merged
Show file tree
Hide file tree
Changes from 31 commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
ada300d
Fix broken Get-MgEntitlementManagementAccessPackageAssignmentPolicy a…
peombwa Jun 25, 2021
1ac1e64
Include search variants.
peombwa Jun 25, 2021
17f25a5
Alias -TenantId as -Audience.
peombwa Jun 29, 2021
d80036b
Remove invalid Get-Mg*AvailableExtensionProperty commands.
peombwa Jun 29, 2021
042cf68
Remove invalid Get-Mg*AvailableExtensionProperty commands in Identity…
peombwa Jun 29, 2021
d08f39b
Merge branch 'dev' into enhancements/HandlePermissionErrors
peombwa Jul 8, 2021
ba44787
Merge branch 'dev' into enhancements/CleanIdentityGovernanceModule
peombwa Jul 12, 2021
e598932
Merge branch 'dev' into enhancements/AvailableExtensionProperties
peombwa Jul 12, 2021
4920256
Docs Generation Infrastructure. (#726)
georgend Jul 12, 2021
97349d6
Merge branch 'dev' into enhancements/HandlePermissionErrors
peombwa Jul 12, 2021
5b6a1fe
Merge pull request #728 from microsoftgraph/enhancements/HandlePermis…
peombwa Jul 12, 2021
8b9e346
Create Github Action to Generate Docs PR (#750)
georgend Jul 12, 2021
46cf907
Cleanup Workflows naming scheme (#753)
georgend Jul 12, 2021
2c6f5f4
Docs PR Assignment (#756)
georgend Jul 13, 2021
b58071d
Merge branch 'dev' into enhancements/CleanIdentityGovernanceModule
peombwa Jul 13, 2021
34da5a5
Merge branch 'dev' into enhancements/AvailableExtensionProperties
peombwa Jul 13, 2021
f9cfdf9
Merge pull request #729 from microsoftgraph/enhancements/AvailableExt…
peombwa Jul 13, 2021
46394dc
Merge branch 'dev' into enhancements/CleanIdentityGovernanceModule
peombwa Jul 13, 2021
75bbe6a
Merge pull request #723 from microsoftgraph/enhancements/CleanIdentit…
peombwa Jul 13, 2021
e3e80e4
Misnamed Template Causing Pipeline failure (#772)
georgend Jul 21, 2021
338ea6a
Incorrectly named Template (#773)
georgend Jul 21, 2021
68c5c23
Misnamed Script name (#775)
georgend Jul 22, 2021
8166575
Run Security Post Checks after build (#794)
georgend Jul 31, 2021
0e47354
Weekly OpenApiDocs Download (#801)
github-actions[bot] Aug 6, 2021
815bae2
Added examples to the cmdlets (#701)
msewaweru Aug 9, 2021
d09dce7
Add New version of local Autorest.Powershell with -ExcludeNotesSectio…
georgend Aug 12, 2021
0d1a30c
Find-MgGraphPermission (#809)
Aug 13, 2021
6bccdff
Bump SDK version to 1.7.0 (#818)
peombwa Sep 2, 2021
92cfeb7
Remove invalid commands (#830)
peombwa Sep 2, 2021
cb6dab2
Fail Build When Pester Tests Fail (#819)
peombwa Sep 7, 2021
b7d85f2
Adds Find-MgGraphCommand (#816)
peombwa Sep 7, 2021
e333ec7
Added examples to the cmdlets (#791)
msewaweru Sep 8, 2021
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
17 changes: 17 additions & 0 deletions .azure-pipelines/common-templates/checkout.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

parameters:
- name: TargetBranch
type: string
default: ''

steps:
- checkout: self
clean: true
Expand All @@ -15,6 +20,18 @@ steps:
git config --global user.email "[email protected]"
git config --global user.name "Microsoft Graph DevX Tooling"

- task: Bash@3
displayName: "Switch branch to target branch: $(TargetBranch)"
condition: and(succeeded(), eq('${{ parameters.TargetBranch }}', ''))
inputs:
targetType: inline
script: |
git status
git fetch --all
git checkout $(TargetBranch)
git pull
git status

- task: securedevelopmentteam.vss-secure-development-tools.build-task-credscan.CredScan@2
displayName: "Run CredScan"
inputs:
Expand Down
8 changes: 4 additions & 4 deletions .azure-pipelines/common-templates/download-openapi-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ jobs:
pool: $(BuildAgent)
steps:
- template: ./checkout.yml
parameters:
TargetBranch: $(BaseBranch)

- template: ./install-tools.yml
- template: ./install-tools-template.yml

- task: PowerShell@2
name: "ComputeBranch"
Expand All @@ -36,8 +38,6 @@ jobs:
targetType: inline
script: |
git status
git fetch --all
git checkout $(BaseBranch)
git branch $(ComputeBranch.WeeklyBranch)
git checkout $(ComputeBranch.WeeklyBranch)
git status
Expand Down Expand Up @@ -110,7 +110,7 @@ jobs:
. "$(System.DefaultWorkingDirectory)\tools\SetServiceModuleVersion.ps1" -VersionNumber $NewModuleVersion -Modules $_
} catch {
if ($_.Exception.Message -like "No match*") {
Write-Warning "$_. Version will be set to $NewMetaModuleVersion."
Write-Warning "$_. Version will be set to $NewMetaModuleVersion."
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@

steps:
- task: UseDotNet@2
displayName: 'Use .NET Core SDK 2.x'
displayName: 'Use .NET Core SDK 2 LTS'
inputs:
debugMode: false
version: 2.x

- task: UseDotNet@2
displayName: 'Use .NET Core SDK 3.x'
displayName: 'Use .NET Core SDK 3 LTS'
inputs:
debugMode: false
version: 3.x

- task: UseDotNet@2
displayName: 'Use .NET Core SDK 5.x'
displayName: 'Use .NET Core SDK 5 Current'
inputs:
debugMode: false
version: 5.x
Expand All @@ -28,12 +28,6 @@ steps:

- task: NuGetAuthenticate@0

- task: PowerShell@2
displayName: 'Install Powershell Core'
inputs:
targetType: inline
script: |
dotnet tool update --global PowerShell

- task: PowerShell@2
displayName: 'Version Check'
Expand Down Expand Up @@ -76,4 +70,4 @@ steps:
Register-PSRepository -Name 'LocalNugetFeed' -SourceLocation $nugetFeed -PublishLocation $nugetFeed -InstallationPolicy Trusted -Credential $credsAzureDevopsServices -PackageManagementProvider 'Nuget' -ErrorAction Continue
Get-PSRepository
Find-Module -Name Microsoft.Graph.Authentication -AllowPrerelease -Credential $credsAzureDevopsServices -AllVersions -Repository 'LocalNugetFeed'
Find-Module -Name Microsoft.Graph.Authentication -AllowPrerelease -Repository 'LocalNugetFeed'
Find-Module -Name Microsoft.Graph.Authentication -AllowPrerelease -Repository 'LocalNugetFeed'
79 changes: 0 additions & 79 deletions .azure-pipelines/common-templates/install-tools.yml

This file was deleted.

55 changes: 55 additions & 0 deletions .azure-pipelines/common-templates/security-postchecks-template.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
steps:
- task: CodesignValidation@0

- task: CodeIntegrity@0

- task: SdtReport@1
displayName: "Security Analysis Report"
continueOnError: true
condition: succeededOrFailed()
inputs:
AllTools: false
APIScan: false
BinSkim: false
BinSkimBreakOn: 'WarningAbove'
CodesignValidation: true
CodesignValidationBreakOn: 'WarningAbove'
CredScan: true
FortifySCA: false
FxCop: false
ModernCop: false
MSRD: false
PoliCheck: true
PoliCheckBreakOn: 'Severity1'
RoslynAnalyzers: true
RoslynAnalyzersBreakOn: 'WarningAbove'
SDLNativeRules: false
Semmle: false
TSLint: false
TSLintBreakOn: 'WarningAbove'
ToolLogsNotFoundAction: 'Standard'

- task: PublishSecurityAnalysisLogs@3
displayName: 'Publish Security Analysis Logs'
inputs:
ArtifactName: 'CodeAnalysisLogs'
ArtifactType: 'Container'
AllTools: false
AntiMalware: false
APIScan: false
BinSkim: false
CodesignValidation: true
CredScan: true
FortifySCA: false
FxCop: false
ModernCop: true
MSRD: false
PoliCheck: true
RoslynAnalyzers: true
SDLNativeRules: false
Semmle: false
TSLint: false
WebScout: false
ToolLogsNotFoundAction: 'Standard'
21 changes: 21 additions & 0 deletions .azure-pipelines/common-templates/security-prechecks-template.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
steps:
- task: CredScan@2
displayName: 'Run CredScan'
inputs:
debugMode: false
batchSize: 20
toolMajorVersion: 'V2'
searchersFileType: 'Skype'

- task: PoliCheck@1
displayName: 'Run PoliCheck'
condition: and(succeeded(), eq(eq(variables['Build.SourceBranch'], 'refs/heads/master'), false))
inputs:
targetType: F
SOMEnabled: true
optionsFC: 0
optionsXS: 0
optionsHMENABLE: 0
continueOnError: true
18 changes: 9 additions & 9 deletions .azure-pipelines/generate-auth-module-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ jobs:
displayName: Microsoft Graph PowerShell SDK Auth Module Generation

steps:
- template: ./install-tools-template.yml
- template: ./common-templates/install-tools-template.yml

- task: AzureKeyVault@1
inputs:
azureSubscription: $(AZURESUBSCRIPTION)
KeyVaultName: $(KEYVAULT)
SecretsFilter: '*'
RunAsPreJob: true

- task: PowerShell@2
displayName: 'Install Test Certificate'
inputs:
Expand All @@ -64,7 +64,7 @@ jobs:
pwsh: true
script: |
Write-Host $(BUILDNUMBER)
pwsh $(System.DefaultWorkingDirectory)/tools/GenerateAuthenticationModule.ps1 -ArtifactsLocation $(Build.ArtifactStagingDirectory) -Build -ModulePreviewNumber $(BUILDNUMBER) -Test
. $(System.DefaultWorkingDirectory)/tools/GenerateAuthenticationModule.ps1 -ArtifactsLocation $(Build.ArtifactStagingDirectory) -Build -ModulePreviewNumber $(BUILDNUMBER) -Test

- task: DotNetCoreCLI@2
displayName: 'Run: Enabled Tests'
Expand Down Expand Up @@ -94,7 +94,7 @@ jobs:
pwsh: true
script: |
Write-Host $(BUILDNUMBER)
pwsh $(System.DefaultWorkingDirectory)/tools/GenerateAuthenticationModule.ps1 -ArtifactsLocation $(Build.ArtifactStagingDirectory) -Build -EnableSigning -ModulePreviewNumber $(BUILDNUMBER) -RepositoryName "LocalNugetFeed"
. $(System.DefaultWorkingDirectory)/tools/GenerateAuthenticationModule.ps1 -ArtifactsLocation $(Build.ArtifactStagingDirectory) -Build -EnableSigning -ModulePreviewNumber $(BUILDNUMBER) -RepositoryName "LocalNugetFeed"

- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@1
displayName: 'ESRP DLL Strong Name (Graph Auth Module)'
Expand Down Expand Up @@ -123,7 +123,7 @@ jobs:
}
]
SessionTimeout: 20

- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@1
displayName: 'ESRP DLL CodeSigning (Graph Auth Module)'
enabled: true
Expand Down Expand Up @@ -172,15 +172,15 @@ jobs:
}
]
SessionTimeout: 20

- task: PowerShell@2
displayName: 'Pack Auth Module'
inputs:
targetType: 'inline'
pwsh: true
script: |
pwsh $(System.DefaultWorkingDirectory)/tools/PackModule.ps1 -Module $(AUTH_MODULE_NAME) -ArtifactsLocation $(Build.ArtifactStagingDirectory)
. $(System.DefaultWorkingDirectory)/tools/PackModule.ps1 -Module $(AUTH_MODULE_NAME) -ArtifactsLocation $(Build.ArtifactStagingDirectory)

- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@1
displayName: 'ESRP NuGet CodeSigning'
enabled: true
Expand Down Expand Up @@ -215,7 +215,7 @@ jobs:
packagesToPush: '$(Build.ArtifactStagingDirectory)\$(AUTH_MODULE_NAME)\Microsoft.Graph.$(AUTH_MODULE_NAME)*.nupkg'
publishVstsFeed: '0985d294-5762-4bc2-a565-161ef349ca3e/edc337b9-e5ea-49dd-a2cb-e8d66668ca57'
allowPackageConflicts: true

- task: PublishTestResults@2
inputs:
testResultsFormat: 'NUnit'
Expand Down
Loading