Skip to content

Commit

Permalink
Sync with plan
Browse files Browse the repository at this point in the history
  • Loading branch information
jit-ci[bot] authored May 28, 2023
1 parent f22931c commit 32f401a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/jit-security.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Workflows generated by the MVS plan
'on':
on:
workflow_dispatch:
inputs:
client_payload:
Expand All @@ -15,9 +15,13 @@ jobs:
with:
docker_user: jit-bot
docker_password: ${{fromJSON(github.event.inputs.client_payload).payload.container_registry_token}}

security_control: ghcr.io/jitsecurity-controls/control-enrichment-slim:latest
security_control_args: --path \${WORK_DIR:-.}

dispatch_type: workflow
context: ${{toJSON(fromJSON(github.event.inputs.client_payload).context)}}
runner_setup: ${{toJSON(fromJSON(github.event.inputs.client_payload).context.job.runner.setup)}}

secret-detection:
if: fromJSON(github.event.inputs.client_payload).payload.workflow_job_name == 'secret-detection'
Expand All @@ -28,7 +32,10 @@ jobs:
with:
docker_user: jit-bot
docker_password: ${{fromJSON(github.event.inputs.client_payload).payload.container_registry_token}}

security_control: ghcr.io/jitsecurity-controls/control-gitleaks-alpine:latest
security_control_args: detect --config \$GITLEAKS_CONFIG_FILE_PATH --source \${WORK_DIR:-.} -v --report-format json --report-path \$REPORT_FILE --redact --no-git --exit-code 0
security_control_output_file: /tmp/report.json
dispatch_type: workflow
dispatch_type: workflow
context: ${{toJSON(fromJSON(github.event.inputs.client_payload).context)}}
runner_setup: ${{toJSON(fromJSON(github.event.inputs.client_payload).context.job.runner.setup)}}

0 comments on commit 32f401a

Please sign in to comment.