Skip to content

Commit

Permalink
Add possibility to the usage of security output in other steps.
Browse files Browse the repository at this point in the history
  • Loading branch information
pplotka committed Jan 13, 2022
1 parent 24f252d commit c2c751b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,17 @@ By default, the output is optimized for terminals, change it via the `format` pa
+ format: markdown
```

You might also get the output (with vulnerabilities) in specified format and do something with them in another step:
```diff
- name: Local PHP Security Checker
+ id: local_php_security_checker
uses: docker://pplotka/local-php-security-checker-github-actions
with:
format: markdown
+ - name: Display the output
+ run: echo ${{ steps.local_php_security_checker.outputs.security }}
```

## Use without GitHub Actions
The Docker Image is located here: https://hub.docker.com/r/pplotka/local-php-security-checker-github-actions

Expand Down
3 changes: 3 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ inputs:
required: false
default: 'ansi'
description: 'Output format'
outputs:
security:
description: 'The detected vulnerabilities in specified format'

runs:
using: 'docker'
Expand Down

0 comments on commit c2c751b

Please sign in to comment.