Skip to content

Commit

Permalink
Fixes for pipeline #43 (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
BernieWhite authored Nov 16, 2023
1 parent 9a06eda commit 1513c48
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .github/workflows/azure-analyze.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,23 @@ jobs:
uses: microsoft/ps-rule@v2.9.0
with:
modules: PSRule.Rules.Azure
outputFormat: Sarif
outputPath: reports/ps-rule-results.sarif
summary: true

# If you have GitHub Advanced Security you can upload PSRule scan results.
# Uncomment the next step to use this feature.
# - name: Upload results to security tab
# uses: github/codeql-action/upload-sarif@v2
# if: always()
# with:
# sarif_file: reports/ps-rule-results.sarif

- name: Upload results
uses: actions/upload-artifact@v3
if: always()
with:
name: PSRule-Sarif
path: reports/ps-rule-results.sarif
retention-days: 1
if-no-files-found: error
1 change: 1 addition & 0 deletions .pipelines/azure-analyze-with-monitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,4 @@ stages:
- publish: $(System.DefaultWorkingDirectory)/reports/ps-rule-results.sarif
artifact: CodeAnalysisLogs
displayName: Publish SARIF logs
condition: succeededOrFailed()
1 change: 1 addition & 0 deletions .pipelines/azure-analyze.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,4 @@ stages:
- publish: $(System.DefaultWorkingDirectory)/reports/ps-rule-results.sarif
artifact: CodeAnalysisLogs
displayName: Publish SARIF logs
condition: succeededOrFailed()
5 changes: 4 additions & 1 deletion ps-rule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@ binding:
- type
- resourceType

execution:
unprocessedObject: Ignore

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

# Use PSRule for Azure.
include:
Expand Down

0 comments on commit 1513c48

Please sign in to comment.