From 9a7d23c0b0dc311ccca2d0a11eded20cc6ab8e86 Mon Sep 17 00:00:00 2001 From: nohehf Date: Wed, 16 Aug 2023 17:29:09 +0200 Subject: [PATCH] feat: configuration_override_path --- README.md | 5 +++-- action.yml | 4 ++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c31fc55..1009bc1 100644 --- a/README.md +++ b/README.md @@ -25,8 +25,9 @@ You can find theses values in your Escape application settings. - `timeout`: The maximum time in seconds to wait for the scan to complete. Default is 1200 seconds. - `configuration_override`: A JSON override of the scan configuration. [See the docs on configuration overrides](https://escape.tech/docs/ci-cd/techniques/configuration-override) +- `configuration_override_path`: Loads `configuration_override` from a file. [See the docs on configuration overrides](https://escape.tech/docs/ci-cd/techniques/configuration-override) - `introspection_file`: The relative path to a JSON file containing an introspection response for updating the application's introspection on Escape. [See the docs on introspection update](https://escape.tech/docs/ci-cd/techniques/introspection-update) -- `shema_file`: The relative path to a GraphQL schema file for updating the application's introspection on Escape. [See the docs on introspection update](https://escape.tech/docs/ci-cd/techniques/introspection-update) +- `schema_file`: The relative path to a GraphQL schema file for updating the application's introspection on Escape. [See the docs on introspection update](https://escape.tech/docs/ci-cd/techniques/introspection-update) ## Usage example @@ -44,5 +45,5 @@ jobs: with: application_id: ${{ secrets.ESCAPE_APPLICATION_ID }} api_key: ${{ secrets.ESCAPE_API_KEY }} - # timeout: 1200 (default - in seconds) + # timeout: 1200 (default - in seconds) (use 0 for non blocking pipelines) ``` diff --git a/action.yml b/action.yml index 2733d6f..e258f20 100644 --- a/action.yml +++ b/action.yml @@ -15,6 +15,9 @@ inputs: configuration_override: description: "Partial JSON configuration for the scan" required: false + configuration_override_path: + description: "Path to JSON file containing a partial configuration for the scan" + required: false schema_file: description: "Path to the schema file" required: false @@ -30,6 +33,7 @@ runs: ESCAPE_API_KEY: ${{ inputs.api_key }} TIMEOUT: ${{ inputs.timeout }} CONFIGURATION_OVERRIDE: ${{ inputs.configuration_override }} + CONFIGURATION_OVERRIDE_PATH: ${{ inputs.configuration_override_path }} SCHEMA_FILE: ${{ inputs.schema_file }} INTROSPECTION_FILE: ${{ inputs.introspection_file }}