Skip to content

Commit

Permalink
Merge pull request #4 from Escape-Technologies/feat/configuration_ove…
Browse files Browse the repository at this point in the history
…rride_path

feat: configuration_override_path
  • Loading branch information
iCarossio authored Aug 16, 2023
2 parents 208b6c8 + 9a7d23c commit ad68144
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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)
```
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}

Expand Down

0 comments on commit ad68144

Please sign in to comment.