Skip to content

Commit 2ad4e86

Browse files
committed
Add Docker Hub example
1 parent 889a059 commit 2ad4e86

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

README.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ jobs:
3535
Advanced configuration that will run PSSA only in the `MyModule` directory, with customer PSSA settings, and fail on errors, warnings, or informational issues.
3636
A comment back to the PR with the PSSA summary will also be sent if any issues were detected.
3737

38-
3938
```yaml
4039
name: CI
4140
on: [pull_request]
@@ -57,6 +56,25 @@ jobs:
5756
failOnInfos: true
5857
```
5958

59+
### Docker
60+
61+
Use the Docker Hub version of the Action instead of building the container during the check
62+
63+
```yaml
64+
name: CI
65+
on: [pull_request]
66+
jobs:
67+
lint:
68+
name: Run PSSA
69+
runs-on: ubuntu-latest
70+
steps:
71+
- uses: actions/checkout@v1
72+
- name: lint
73+
uses: docker://devblackops/github-action-psscriptanalyzer:2.0.0
74+
with:
75+
repoToken: ${{ secrets.GITHUB_TOKEN }}
76+
```
77+
6078
## Inputs
6179

6280
| Name | Default | Description |

0 commit comments

Comments
 (0)