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:
Danil Titarenko 2023-11-27 20:04:16 +03:00 committed by GitHub
parent 666b710ce6
commit 9fa4a2bf3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 }}