Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 6 additions & 0 deletions .github/workflows/azure-analyze.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ jobs:
- name: Checkout
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1

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

# If you have GitHub Advanced Security you can upload PSRule scan results.
# Uncomment the next step to use this feature.
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,19 @@ jobs:
with:
modules: PSRule.Rules.MSFT.OSS

# Install a specific version of Bicep for consistency across CI runs.
# - name: Install Bicep
# run: az bicep install --version v0.39.26
- name: Check Azure samples
uses: microsoft/ps-rule@46451b8f5258c41beb5ae69ed7190ccbba84112c # v2.9.0
with:
modules: PSRule.Rules.Azure
outputFormat: Sarif
outputPath: reports/ps-rule-results.sarif
summary: true
# env:
# # Use Bicep from Azure CLI.
# PSRULE_AZURE_BICEP_USE_AZURE_CLI: true

- name: Upload results to security tab
uses: github/codeql-action/upload-sarif@cdefb33c0f6224e58673d9004f47f7cb3e328b89 # v3.29.5
Expand Down
6 changes: 3 additions & 3 deletions ps-rule.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"version": 1,
"modules": {
"PSRule.Rules.Azure": {
"version": "1.41.3",
"integrity": "sha512-yvMcfOsu8KWxTxT94ZxiXTYN3wbD4CmsEQpSSjeHGDyJcDKTlSGFW7YC7XW48qEqN0BFi7aTxGfAyM3FAb5vog=="
"version": "1.47.0",
"integrity": "sha512-LaF5k4DxEQHzVfen9W+ocMMUVvI6pFr++zqhsh9Cdxvz+2GBx/OMROOkswNr4D2V2uZ4DCM8Gg2TyLXWtHTKiQ=="
}
}
}
}
3 changes: 1 addition & 2 deletions ps-rule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ execution:

# Require minimum versions of modules.
requires:
PSRule: '@pre >=2.9.0'
PSRule.Rules.Azure: '@pre >=1.34.2'

# Add PSRule v3 format configuration
Expand Down Expand Up @@ -71,7 +70,7 @@ configuration:
AZURE_BICEP_CHECK_TOOL: true

# Configure the minimum version of the Bicep CLI.
AZURE_BICEP_MINIMUM_VERSION: '0.25.53'
AZURE_BICEP_MINIMUM_VERSION: '0.39.26'

AZURE_PARAMETER_DEFAULTS:
adminPassword: $CREDENTIAL_PLACEHOLDER$
Expand Down
Loading