You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GitHub Action to run PSScriptAnalyzer static code analysis
1
+
# github-action-psscriptanalyzer
2
+
3
+
[GitHub Action](https://github.com/features/actions) to run [PSScriptAnalyzer](https://github.com/PowerShell/PSScriptAnalyzer) static code analysis checks on [Pull Requests](https://help.github.com/articles/about-pull-requests/).
4
+
5
+
## Success Criteria
6
+
7
+
This action will succeed if **zero** PSScriptAnalyzer errors are found.
8
+
If any warnings or informational issues are found, a comment will be posted to the pull request but the action will not return a failure.
9
+
10
+
## Usage
11
+
12
+
Place the following in your `./github/main.workflow` file to run PSScriptAnalyzer on incoming pull requests.
errorList='{0}The following PSScriptAnalyzer errors caused the check to fail:{1}'
36
+
warningMsg='{0} There were **[{1}]** warnings and **[{2}]** informational issues found. These did not cause the check to fail but it is recommended that they be fixed.'
0 commit comments