mirror of
https://github.com/Yamato-Security/WELA.git
synced 2026-10-25 14:38:17 +01:00
40 lines
1.3 KiB
YAML
40 lines
1.3 KiB
YAML
name: Native WMI descendant safeguards
|
|
on:
|
|
push:
|
|
branches: ['**']
|
|
paths:
|
|
- 'scripts/WmiNamespaceAuditing.ps1'
|
|
- 'scripts/WmiNamespaceDescendants.ps1'
|
|
- 'tests/WmiNamespaceDescendants*'
|
|
- '.github/workflows/wmi-descendants.yml'
|
|
pull_request:
|
|
workflow_dispatch:
|
|
permissions:
|
|
contents: read
|
|
jobs:
|
|
wmi-descendants:
|
|
timeout-minutes: 25
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [windows-2022, windows-2025]
|
|
shell: [powershell, pwsh]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
- name: Existing WMI regression contracts
|
|
shell: ${{ matrix.shell }}
|
|
run: ./tests/WmiNamespaceAuditing.Tests.ps1
|
|
- name: Actual owned namespace tree and cleanup
|
|
shell: ${{ matrix.shell }}
|
|
run: ./tests/WmiNamespaceDescendants.Windows.Tests.ps1 -AllowDisposableNamespaceWrite -EvidencePath wmi-descendants-native.json
|
|
- name: Retain complete native observations
|
|
if: always()
|
|
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
|
with:
|
|
name: wmi-descendants-${{ matrix.os }}-${{ matrix.shell }}
|
|
path: |
|
|
wmi-descendants-native.json
|
|
wmi-descendants-native.json.journals
|
|
if-no-files-found: error
|