Skip to content

Commit 825ed0d

Browse files
committed
Add --format
1 parent 2e021d6 commit 825ed0d

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
FROM golang:1.18-alpine AS builder
2-
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
2+
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
33
RUN chmod 755 checker
44

55
FROM scratch

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Inputs
77
------
88

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

1213
Outputs

action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ inputs:
88
description: 'The path to composer.lock is stored (root directory by default)'
99
required: false
1010
default: './composer.lock'
11+
format:
12+
description: 'The output format (ansi by default, supported: ansi, junit, markdown, json, or yaml)'
13+
required: false
14+
default: ansi
1115
disable-exit-code:
1216
description: 'Whether to continue when issues are detected (false by default)'
1317
required: false
@@ -20,6 +24,8 @@ runs:
2024
image: 'Dockerfile'
2125
args:
2226
- "/checker"
27+
- "--format"
28+
- ${{ inputs.format }}
2329
- "--path"
2430
- ${{ inputs.lock }}
2531
- "--disable-exit-code=${{ inputs.disable-exit-code }}"

0 commit comments

Comments
 (0)