Skip to content

Commit 8b26961

Browse files
authored
Bump PSRule for Azure module to latest version (#90)
1 parent e93279a commit 8b26961

4 files changed

Lines changed: 16 additions & 5 deletions

File tree

.github/workflows/azure-analyze.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ jobs:
3838
- name: Checkout
3939
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
4040

41+
# Install a specific version of Bicep for consistency across CI runs.
42+
# - name: Install Bicep
43+
# run: az bicep install --version v0.39.26
4144
# Run analysis by using the PSRule GitHub action.
4245
- name: Run PSRule analysis
4346
uses: microsoft/ps-rule@46451b8f5258c41beb5ae69ed7190ccbba84112c # v2.9.0
@@ -46,6 +49,9 @@ jobs:
4649
outputFormat: Sarif
4750
outputPath: reports/ps-rule-results.sarif
4851
summary: true
52+
# env:
53+
# # Use Bicep from Azure CLI.
54+
# PSRULE_AZURE_BICEP_USE_AZURE_CLI: true
4955

5056
# If you have GitHub Advanced Security you can upload PSRule scan results.
5157
# Uncomment the next step to use this feature.

.github/workflows/ci.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,19 @@ jobs:
4545
with:
4646
modules: PSRule.Rules.MSFT.OSS
4747

48+
# Install a specific version of Bicep for consistency across CI runs.
49+
# - name: Install Bicep
50+
# run: az bicep install --version v0.39.26
4851
- name: Check Azure samples
4952
uses: microsoft/ps-rule@46451b8f5258c41beb5ae69ed7190ccbba84112c # v2.9.0
5053
with:
5154
modules: PSRule.Rules.Azure
5255
outputFormat: Sarif
5356
outputPath: reports/ps-rule-results.sarif
5457
summary: true
58+
# env:
59+
# # Use Bicep from Azure CLI.
60+
# PSRULE_AZURE_BICEP_USE_AZURE_CLI: true
5561

5662
- name: Upload results to security tab
5763
uses: github/codeql-action/upload-sarif@cdefb33c0f6224e58673d9004f47f7cb3e328b89 # v3.29.5

ps-rule.lock.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"version": 1,
33
"modules": {
44
"PSRule.Rules.Azure": {
5-
"version": "1.41.3",
6-
"integrity": "sha512-yvMcfOsu8KWxTxT94ZxiXTYN3wbD4CmsEQpSSjeHGDyJcDKTlSGFW7YC7XW48qEqN0BFi7aTxGfAyM3FAb5vog=="
5+
"version": "1.47.0",
6+
"integrity": "sha512-LaF5k4DxEQHzVfen9W+ocMMUVvI6pFr++zqhsh9Cdxvz+2GBx/OMROOkswNr4D2V2uZ4DCM8Gg2TyLXWtHTKiQ=="
77
}
88
}
9-
}
9+
}

ps-rule.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ execution:
1919

2020
# Require minimum versions of modules.
2121
requires:
22-
PSRule: '@pre >=2.9.0'
2322
PSRule.Rules.Azure: '@pre >=1.34.2'
2423

2524
# Add PSRule v3 format configuration
@@ -71,7 +70,7 @@ configuration:
7170
AZURE_BICEP_CHECK_TOOL: true
7271

7372
# Configure the minimum version of the Bicep CLI.
74-
AZURE_BICEP_MINIMUM_VERSION: '0.25.53'
73+
AZURE_BICEP_MINIMUM_VERSION: '0.39.26'
7574

7675
AZURE_PARAMETER_DEFAULTS:
7776
adminPassword: $CREDENTIAL_PLACEHOLDER$

0 commit comments

Comments
 (0)