Bump Microsoft/ps-rule from 2.1.0 to 2.6.0 (#73)
* Bump Microsoft/ps-rule from 2.1.0 to 2.6.0 Bumps [Microsoft/ps-rule](https://github.com/Microsoft/ps-rule) from 2.1.0 to 2.6.0. - [Release notes](https://github.com/Microsoft/ps-rule/releases) - [Changelog](https://github.com/microsoft/ps-rule/blob/main/docs/CHANGELOG-v2.md) - [Commits](https://github.com/Microsoft/ps-rule/compare/v2.1.0...v2.6.0) --- updated-dependencies: - dependency-name: Microsoft/ps-rule dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Update CI pipeline images * Fix tests Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Bernie White <bewhite@microsoft.com>
This commit is contained in:
Родитель
3fe918b4e2
Коммит
184a73f9bc
|
@ -5,7 +5,7 @@ variables:
|
||||||
version: '0.3.0'
|
version: '0.3.0'
|
||||||
buildConfiguration: 'Release'
|
buildConfiguration: 'Release'
|
||||||
disable.coverage.autogenerate: 'true'
|
disable.coverage.autogenerate: 'true'
|
||||||
imageName: 'ubuntu-20.04'
|
imageName: 'ubuntu-22.04'
|
||||||
|
|
||||||
# Use build number format, i.e. 0.3.0-B2205001
|
# Use build number format, i.e. 0.3.0-B2205001
|
||||||
name: $(version)-B$(date:yyMM)$(rev:rrr)
|
name: $(version)-B$(date:yyMM)$(rev:rrr)
|
||||||
|
@ -70,7 +70,7 @@ stages:
|
||||||
|
|
||||||
- job: Secret_Scan
|
- job: Secret_Scan
|
||||||
pool:
|
pool:
|
||||||
vmImage: 'windows-2019'
|
vmImage: 'windows-2022'
|
||||||
displayName: Secret scan
|
displayName: Secret scan
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
|
@ -97,8 +97,8 @@ stages:
|
||||||
|
|
||||||
- template: jobs/test.yaml
|
- template: jobs/test.yaml
|
||||||
parameters:
|
parameters:
|
||||||
name: ubuntu_20_04_coverage
|
name: ubuntu_22_04_coverage
|
||||||
imageName: 'ubuntu-20.04'
|
imageName: 'ubuntu-22.04'
|
||||||
displayName: 'PowerShell coverage'
|
displayName: 'PowerShell coverage'
|
||||||
coverage: 'true'
|
coverage: 'true'
|
||||||
platform: linux
|
platform: linux
|
||||||
|
@ -106,39 +106,32 @@ stages:
|
||||||
|
|
||||||
- template: jobs/test.yaml
|
- template: jobs/test.yaml
|
||||||
parameters:
|
parameters:
|
||||||
name: macOS_10_15
|
name: macOS_12
|
||||||
displayName: 'PowerShell 7.1 - macOS-10.15'
|
displayName: 'PowerShell 7.2 - macOS-12'
|
||||||
imageName: 'macOS-10.15'
|
imageName: 'macos-12'
|
||||||
platform: macos
|
platform: macos
|
||||||
|
|
||||||
- template: jobs/test.yaml
|
- template: jobs/test.yaml
|
||||||
parameters:
|
parameters:
|
||||||
name: ps_5_1_windows_2019
|
name: ps_5_1_windows_2022
|
||||||
displayName: 'PowerShell 5.1 - Windows 2019'
|
displayName: 'PowerShell 5.1 - Windows 2022'
|
||||||
imageName: 'windows-2019'
|
imageName: 'windows-2022'
|
||||||
platform: windows
|
platform: windows
|
||||||
pwsh: 'false'
|
pwsh: 'false'
|
||||||
|
|
||||||
- template: jobs/test.yaml
|
- template: jobs/test.yaml
|
||||||
parameters:
|
parameters:
|
||||||
name: ps_7_2_windows_2019
|
name: ps_7_2_windows_2022
|
||||||
displayName: 'PowerShell 7.2 - Windows 2019'
|
displayName: 'PowerShell 7.2 - Windows 2022'
|
||||||
imageName: 'windows-2019'
|
imageName: 'windows-2022'
|
||||||
platform: windows
|
platform: windows
|
||||||
|
|
||||||
- template: jobs/testContainer.yaml
|
- template: jobs/testContainer.yaml
|
||||||
parameters:
|
parameters:
|
||||||
name: ps_7_2_ubuntu_18_04
|
name: ps_7_2_ubuntu_22_04
|
||||||
displayName: 'PowerShell 7.2 - ubuntu-18.04'
|
displayName: 'PowerShell 7.2 - ubuntu-22.04'
|
||||||
imageName: mcr.microsoft.com/powershell
|
imageName: mcr.microsoft.com/powershell
|
||||||
imageTag: 7.2.0-ubuntu-18.04
|
imageTag: 7.2-ubuntu-22.04
|
||||||
|
|
||||||
- template: jobs/testContainer.yaml
|
|
||||||
parameters:
|
|
||||||
name: ps_7_2_ubuntu_20_04
|
|
||||||
displayName: 'PowerShell 7.2 - ubuntu-20.04'
|
|
||||||
imageName: mcr.microsoft.com/powershell
|
|
||||||
imageTag: 7.2.0-ubuntu-20.04
|
|
||||||
|
|
||||||
# Release pipeline
|
# Release pipeline
|
||||||
- stage: Release
|
- stage: Release
|
||||||
|
|
|
@ -5,7 +5,7 @@ parameters:
|
||||||
name: ''
|
name: ''
|
||||||
displayName: ''
|
displayName: ''
|
||||||
buildConfiguration: 'Release'
|
buildConfiguration: 'Release'
|
||||||
vmImage: 'ubuntu-20.04'
|
vmImage: 'ubuntu-22.04'
|
||||||
imageName: ''
|
imageName: ''
|
||||||
imageTag: ''
|
imageTag: ''
|
||||||
coverage: 'false'
|
coverage: 'false'
|
||||||
|
|
|
@ -14,7 +14,7 @@ jobs:
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Run PSRule analysis
|
- name: Run PSRule analysis
|
||||||
uses: Microsoft/ps-rule@v2.1.0
|
uses: microsoft/ps-rule@v2.6.0
|
||||||
with:
|
with:
|
||||||
modules: 'PSRule.Rules.MSFT.OSS'
|
modules: 'PSRule.Rules.MSFT.OSS'
|
||||||
prerelease: true
|
prerelease: true
|
||||||
|
|
|
@ -39,7 +39,7 @@ Describe 'Rule quality' {
|
||||||
$rule.Description | Should -Not -BeNullOrEmpty;
|
$rule.Description | Should -Not -BeNullOrEmpty;
|
||||||
$rule.Info.Annotations.category | Should -Not -BeNullOrEmpty;
|
$rule.Info.Annotations.category | Should -Not -BeNullOrEmpty;
|
||||||
$rule.Info.Annotations.severity | Should -Not -BeNullOrEmpty;
|
$rule.Info.Annotations.severity | Should -Not -BeNullOrEmpty;
|
||||||
$rule.Info.GetOnlineHelpUri() | Should -Not -BeNullOrEmpty;
|
$rule.Info.Annotations.'online version' | Should -Not -BeNullOrEmpty;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче