Adding Alert Processing Rule flexibility based on severity filters #62
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Check Policy Build | |
########################################## | |
# Start the job on PR for all branches # | |
########################################## | |
# yamllint disable-line rule:truthy | |
on: | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
- ready_for_review | |
paths: | |
- "patterns/alz/policyDefinitions/**.json" | |
- "patterns/alz/policySetDefinitions/**.json" | |
- "patterns/alz/templates/**.bicep" | |
- "services/**.json" | |
############### | |
# Set the Job # | |
############### | |
jobs: | |
check-policy: | |
name: Check Policy Build | |
runs-on: windows-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Check build | |
shell: pwsh | |
run: | | |
Import-Module Pester -Force | |
$pesterConfiguration = @{ | |
Run = @{ | |
Container = New-PesterContainer -Path "./.github/actions-pester/Test-BuildPolicies.Tests.ps1" | |
PassThru = $true | |
} | |
Output = @{ | |
Verbosity = 'Detailed' | |
} | |
} | |
$result = Invoke-Pester -Configuration $pesterConfiguration | |
exit $result.FailedCount |