diff --git a/.github/workflows/jit-security.yml b/.github/workflows/jit-security.yml index ad2fbcf..ab012fd 100644 --- a/.github/workflows/jit-security.yml +++ b/.github/workflows/jit-security.yml @@ -1,5 +1,6 @@ name: Workflows generated by the MVS plan -'on': +run-name: ${{fromJSON(github.event.inputs.client_payload).payload.job_title}} +on: workflow_dispatch: inputs: client_payload: @@ -12,7 +13,7 @@ permissions: jobs: enrich: - if: fromJSON(github.event.inputs.client_payload).payload.workflow_job_name == 'enrich' + if: fromJSON(github.event.inputs.client_payload).payload.workflow_job_name == 'enrich' && fromJSON(github.event.inputs.client_payload).payload.workflow_slug == 'workflow-enrichment-code' runs-on: ubuntu-20.04 timeout-minutes: 20 steps: @@ -20,9 +21,9 @@ jobs: uses: jitsecurity-controls/jit-github-action@v4.0.5 with: security_control: registry.jit.io/control-enrichment-slim:latest - + secret-detection: - if: fromJSON(github.event.inputs.client_payload).payload.workflow_job_name == 'secret-detection' + if: fromJSON(github.event.inputs.client_payload).payload.workflow_job_name == 'secret-detection' && fromJSON(github.event.inputs.client_payload).payload.workflow_slug == 'workflow-secret-detection' runs-on: ubuntu-20.04 timeout-minutes: 20 steps: @@ -30,4 +31,5 @@ jobs: uses: jitsecurity-controls/jit-github-action@v4.0.5 with: security_control: registry.jit.io/control-gitleaks-alpine:latest - security_control_output_file: /tmp/report.json \ No newline at end of file + security_control_output_file: /tmp/report.json + \ No newline at end of file