From c2c751b45783b17cafa123ffd04f4876db81befd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20P=C5=82otka?= Date: Thu, 13 Jan 2022 22:34:48 +0100 Subject: [PATCH] Add possibility to the usage of security output in other steps. --- README.md | 11 +++++++++++ action.yaml | 3 +++ 2 files changed, 14 insertions(+) diff --git a/README.md b/README.md index 3b7edc6..15e8346 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/action.yaml b/action.yaml index f82828b..5148568 100644 --- a/action.yaml +++ b/action.yaml @@ -19,6 +19,9 @@ inputs: required: false default: 'ansi' description: 'Output format' +outputs: + security: + description: 'The detected vulnerabilities in specified format' runs: using: 'docker'