test: update workflow
This commit is contained in:
20
.github/workflows/powershell.yml
vendored
20
.github/workflows/powershell.yml
vendored
@@ -36,25 +36,11 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
# Check https://github.com/microsoft/action-psscriptanalyzer for more info about the options.
|
# Check https://github.com/microsoft/action-psscriptanalyzer for more info about the options.
|
||||||
# The below set up runs PSScriptAnalyzer to your entire repository and runs some basic security rules.
|
# The below set up runs PSScriptAnalyzer to your entire repository and runs some basic security rules.
|
||||||
path: |
|
path: .\source
|
||||||
.\source\Classes
|
|
||||||
.\source\helper
|
|
||||||
.\source\Private
|
|
||||||
.\source\Public
|
|
||||||
.\source\tests
|
|
||||||
recurse: true
|
recurse: true
|
||||||
# Include your own basic security rules. Removing this option will run all the rules
|
# Include your own basic security rules. Removing this option will run all the rules
|
||||||
includeRule: |
|
includeRule: '"PSAvoidGlobalAliases", "PSAvoidUsingConvertToSecureStringWithPlainText", "PSAvoidUsingPlainTextForPassword", "PSAvoidUsingInvokeExpression", "PSUseApprovedVerbs", "PSAvoidUsingPositionalParameters", "PSAvoidUsingEmptyCatchBlock", "PSAvoidUsingDeprecatedManifestFields", "PSAvoidUsingUserNameAndPasswordParams", "PSAvoidUsingCmdletAliases"'
|
||||||
"PSAvoidGlobalAliases",
|
|
||||||
"PSAvoidUsingConvertToSecureStringWithPlainText",
|
|
||||||
"PSAvoidUsingPlainTextForPassword",
|
|
||||||
"PSAvoidUsingInvokeExpression",
|
|
||||||
"PSUseApprovedVerbs",
|
|
||||||
"PSAvoidUsingPositionalParameters",
|
|
||||||
"PSAvoidUsingEmptyCatchBlock",
|
|
||||||
"PSAvoidUsingDeprecatedManifestFields",
|
|
||||||
"PSAvoidUsingUserNameAndPasswordParams",
|
|
||||||
"PSAvoidUsingCmdletAliases"
|
|
||||||
output: results.sarif
|
output: results.sarif
|
||||||
|
|
||||||
# Upload the SARIF file generated in the previous step
|
# Upload the SARIF file generated in the previous step
|
||||||
|
Reference in New Issue
Block a user