Run zap scanner only on cron or workflow_dispatch event (#74)
* Run zap scanner only on `schedule` or `workflow_dispatch` trigger * Send event name from cron action * Revert some changes * Add condition that check `repository_dispatch` event name
This commit is contained in:
parent
666b710ce6
commit
9fa4a2bf3e
1
.github/workflows/main-build.yml
vendored
1
.github/workflows/main-build.yml
vendored
@ -69,6 +69,7 @@ jobs:
|
||||
shell: bash
|
||||
|
||||
- name: Run zap action if needed
|
||||
if: ${{ github.event.action == 'cron-trigger-action' || github.event_name == 'workflow_dispatch' }}
|
||||
env:
|
||||
RUN_ZAP: ${{ github.event.inputs.zap || 'true' }}
|
||||
GITHUB_TOKEN: ${{ secrets.TOKEN }}
|
||||
|
Loading…
Reference in New Issue
Block a user