mirror of
https://github.com/benclaussen/NetboxPS.git
synced 2025-12-13 18:02:29 +00:00
PSSA: Add Github Actions for launch PSSA (PowerShell Script Analyzer) when launch PR (#11)
Add also vscode/PSScriptAnalyzerSettings.psd1 for Settings for PSSA (can be reuse also for vscode...)
This commit is contained in:
parent
1f89363cbd
commit
fcbb25c088
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