Skip to content

Commit 34bf57f

Browse files
Create security.yml
1 parent 4e418c5 commit 34bf57f

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/security.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Security Checks
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
shellcheck:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v3
10+
- name: Run ShellCheck
11+
uses: ludeeus/action-shellcheck@v2
12+
with:
13+
args: .
14+
15+
psscriptanalyzer:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v3
19+
- name: Install PowerShell
20+
uses: actions/setup-powershell@v2
21+
- name: Install PSScriptAnalyzer
22+
run: pwsh -Command "Install-Module -Name PSScriptAnalyzer -Force -Scope CurrentUser"
23+
- name: Run PSScriptAnalyzer
24+
run: pwsh -Command "Invoke-ScriptAnalyzer -Path . -Recurse"

0 commit comments

Comments
 (0)