Skip to content

Commit 743fecb

Browse files
committed
update readme
1 parent 4c8c68c commit 743fecb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ If any warnings or informational issues are found, a comment will be posted to t
1111

1212
Place the following in your `./github/main.workflow` file to run PSScriptAnalyzer on incoming pull requests.
1313

14+
> Make sure `secrets = ["GITHUB_TOKEN"]` is present as it is required to post a comment back to the pull request.
15+
1416
```
1517
1618
workflow "psscriptanalysis" {
@@ -23,6 +25,8 @@ action "PSScriptAnalyzer" {
2325
# https://github.com/devblackops/github-action-psscriptanalyzer/releases
2426
uses = "devblackops/github-action-psscriptanalyzer/analyze@<latest tag>"
2527
28+
secrets = ["GITHUB_TOKEN"]
29+
2630
# Optional environment variables to control analysis behavior
2731
env = [
2832
PSSCRIPTANALYZER_ROOT = "./MyModule"

0 commit comments

Comments
 (0)