mirror of
https://github.com/Yamato-Security/WELA.git
synced 2025-12-08 02:02:56 +01:00
add actions
This commit is contained in:
32
.github/workflows/check-audit.yml
vendored
Normal file
32
.github/workflows/check-audit.yml
vendored
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
name: Check audit setting
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ "main" ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ "main" ]
|
||||||
|
|
||||||
|
env:
|
||||||
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [windows-2019, windows-2022, windows-2025]
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: auditpol /list /subcategory:* /r
|
||||||
|
run: auditpol /list /subcategory:* /r
|
||||||
|
|
||||||
|
- name: auditpol /get /category:*
|
||||||
|
run: auditpol /get /category:*
|
||||||
|
|
||||||
|
- name: Get-WinEvent -ListLog * | Select-Object LogName, MaximumSizeInBytes
|
||||||
|
run: Get-WinEvent -ListLog * | Select-Object LogName, MaximumSizeInBytes
|
||||||
|
|
||||||
|
- name: Get-WinEvent -ListProvider *
|
||||||
|
run: (Get-WinEvent -ListProvider Microsoft-Windows-Security-Auditing).Events | ForEach-Object { [PSCustomObject]@{EventID=$_.Id; Description=($_.Description -replace "`r`n", " ") -replace "\..*", ""} }
|
||||||
|
|
||||||
Reference in New Issue
Block a user