get the github.event json and branch name in github Actions workflow scripts
Assuming you want to run checkmarx scan on any push event to make sure the codes committed do not have major secruity concerns. You can set up a workflow like below:
name: Trigger Checkmarx Scan Workflow
on:
push:
branches-ignore:
- main
- master
- develop
jobs:
checkmarxscan:
runs-on: linux
steps: