Skip to content

Create security.yml

Create security.yml #2

Workflow file for this run

name: Security Checks
on: [push, pull_request]
jobs:
shellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@v2
with:
args: .
psscriptanalyzer:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install PowerShell
uses: actions/setup-powershell@v2
- name: Install PSScriptAnalyzer
run: pwsh -Command "Install-Module -Name PSScriptAnalyzer -Force -Scope CurrentUser"
- name: Run PSScriptAnalyzer
run: pwsh -Command "Invoke-ScriptAnalyzer -Path . -Recurse"