mirror of
https://github.com/graycoreio/github-actions-magento2.git
synced 2026-06-08 19:46:41 +00:00
feat(sansec-ecomscan): skip server checks by default (#238)
This commit is contained in:
@@ -17,6 +17,11 @@ inputs:
|
|||||||
default: 'true'
|
default: 'true'
|
||||||
description: "Skip the database scan (--skip-database). Defaults to true."
|
description: "Skip the database scan (--skip-database). Defaults to true."
|
||||||
|
|
||||||
|
skip-server-checks:
|
||||||
|
required: false
|
||||||
|
default: 'true'
|
||||||
|
description: "Skip server / os level checks like copy-fail"
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: composite
|
using: composite
|
||||||
steps:
|
steps:
|
||||||
@@ -27,12 +32,13 @@ runs:
|
|||||||
- name: Fix permissions
|
- name: Fix permissions
|
||||||
shell: bash
|
shell: bash
|
||||||
run: chmod +x ecomscan
|
run: chmod +x ecomscan
|
||||||
|
|
||||||
- name: Run eComscan
|
- name: Run eComscan
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
ECOMSCAN_KEY: ${{ inputs.license }}
|
ECOMSCAN_KEY: ${{ inputs.license }}
|
||||||
run: |
|
run: |
|
||||||
|
[ "${{ inputs.skip-server-checks }}" = "true" ] && export ECOMSCAN_SKIP_SERVER_CHECKS=true
|
||||||
FLAGS=(--no-auto-update --deep --format=csv)
|
FLAGS=(--no-auto-update --deep --format=csv)
|
||||||
[ "${{ inputs.skip_database }}" = "true" ] && FLAGS+=(--skip-database)
|
[ "${{ inputs.skip_database }}" = "true" ] && FLAGS+=(--skip-database)
|
||||||
output=$(./ecomscan "${FLAGS[@]}" "${{ inputs.path }}")
|
output=$(./ecomscan "${FLAGS[@]}" "${{ inputs.path }}")
|
||||||
|
|||||||
Reference in New Issue
Block a user