Security Window is a PowerShell-based Windows security and automation framework.
It helps developers and system engineers scan, analyze, and report security issues while maintaining clean, consistent PowerShell code through automated GitHub Actions workflows.
- 🔍 Static Code Analysis — Runs PSScriptAnalyzer checks automatically on every push or pull request.
- 🧰 Automated CI/CD Workflow — Integrated GitHub Actions configuration with custom settings file.
- 🧾 Secure & Modular Scripts — Clean, extensible PowerShell modules ready for integration or extension.
- ⚙️ Custom Rule Control — Easily configure or disable noisy rules via
PSScriptAnalyzerSettings.psd1. - 📊 Action Badges & Reports — Instant status feedback in every commit and pull request.
git clone https://github.com/Kettailor/Security_Window.git
cd Security_Windowpwsh
Install-Module PSScriptAnalyzer -Force
Invoke-ScriptAnalyzer -Path ./tools -RecurseFollow recommendations shown in the console or use:
Invoke-ScriptAnalyzer -Path ./tools -Recurse -FixSecurity Window comes with a ready-to-use GitHub Actions workflow:
name: PowerShell Static Analysis
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
psscan:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Run PowerShell Static Analysis
shell: pwsh
run: |
Install-Module PSScriptAnalyzer -Force -Scope CurrentUser
$results = Invoke-ScriptAnalyzer -Path ./tools -Recurse -Settings ./PSScriptAnalyzerSettings.psd1 -ErrorAction Continue
$err = $results | Where-Object Severity -eq 'Error'
if ($err) { exit 1 } else { Write-Host "No errors found." }PowerShell, Windows Security, Automation, GitHub Actions, CI/CD, Static Analysis,
Script Analyzer, PSScriptAnalyzer, Secure Coding, Workflow Optimization, Security Auditing
Pull requests are welcome!
If you plan major changes, please open an issue first to discuss what you’d like to modify.
Before committing, make sure your scripts pass Invoke-ScriptAnalyzer.
This project is licensed under the MIT License — see the LICENSE file for details.
If you find this useful:
- Give it a ⭐ star to support development.
- Fork it and customize for your own workflow.
- Submit issues or enhancements on the GitHub Issues page.
© 2025 Security Window — Built with ❤️ and PowerShell