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] committed May 29, 2023
1 parent 65019f8 commit d98e61c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/jit-security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -243,3 +243,20 @@ jobs:
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)}}

static-code-analysis-swift:
if: fromJSON(github.event.inputs.client_payload).payload.workflow_job_name == 'static-code-analysis-swift'
runs-on: ubuntu-20.04
steps:
- name: semgrep
uses: jitsecurity-controls/jit-github-action@v2.2
with:
docker_user: jit-bot
docker_password: ${{fromJSON(github.event.inputs.client_payload).payload.container_registry_token}}

security_control: ghcr.io/jitsecurity-controls/control-semgrep-alpine:latest
security_control_args: --json --config=/semgrep-swift-config.yml --metrics=off --severity=ERROR \${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)}}

0 comments on commit d98e61c

Please sign in to comment.