Skip to content

Commit

Permalink
Add --format
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Apr 9, 2022
1 parent 2e021d6 commit 825ed0d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM golang:1.18-alpine AS builder
RUN wget -O checker https://github.com/fabpot/local-php-security-checker/releases/download/v2.0.2/local-php-security-checker_2.0.2_linux_amd64
RUN wget -O checker https://github.com/fabpot/local-php-security-checker/releases/download/v2.0.3/local-php-security-checker_2.0.3_linux_amd64
RUN chmod 755 checker

FROM scratch
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Inputs
------

* `composer` *optional* The path to the `composer.lock` file (defaults to the repository root directory).
* `format` *optional* The output format (defaults to `ansi`, supported: `ansi`, `junit`, `markdown`, `json`, or `yaml`).
* `disable-exit-code` *optional* Set it to `1` if you don't want the step to fail in case of detected vulnerabilities

Outputs
Expand Down
6 changes: 6 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ inputs:
description: 'The path to composer.lock is stored (root directory by default)'
required: false
default: './composer.lock'
format:
description: 'The output format (ansi by default, supported: ansi, junit, markdown, json, or yaml)'
required: false
default: ansi
disable-exit-code:
description: 'Whether to continue when issues are detected (false by default)'
required: false
Expand All @@ -20,6 +24,8 @@ runs:
image: 'Dockerfile'
args:
- "/checker"
- "--format"
- ${{ inputs.format }}
- "--path"
- ${{ inputs.lock }}
- "--disable-exit-code=${{ inputs.disable-exit-code }}"

0 comments on commit 825ed0d

Please sign in to comment.