mirror of
https://github.com/benclaussen/NetboxPS.git
synced 2025-12-15 18:55:46 +00:00
PSSA: Add Github Actions for launch PSSA (PowerShell Script Analyzer) when launch PR
Add also vscode/PSScriptAnalyzerSettings.psd1 for Settings for PSSA (can be reuse also for vscode...)
This commit is contained in:
parent
cfb53cf933
commit
1c212a0375
2 changed files with 21 additions and 0 deletions
16
.github/workflows/pssa.yml
vendored
Normal file
16
.github/workflows/pssa.yml
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
name: CI
|
||||
on: [pull_request]
|
||||
jobs:
|
||||
lint:
|
||||
name: Run PSSA
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: lint
|
||||
uses: docker://devblackops/github-action-psscriptanalyzer:2.3.0
|
||||
with:
|
||||
settingsPath: .vscode/PSScriptAnalyzerSettings.psd1
|
||||
sendComment: false
|
||||
failOnInfos: true
|
||||
failOnErrors: true
|
||||
failOnWarnings: true
|
||||
5
.vscode/PSScriptAnalyzerSettings.psd1
vendored
Normal file
5
.vscode/PSScriptAnalyzerSettings.psd1
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
@{
|
||||
ExcludeRules = @(
|
||||
'PSUseToExportFieldsInManifest'
|
||||
)
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue