on:
repository_dispatch:
- security_scan
- security_scan::*
Why would you want to do this?We centralize our release pipelines as it's the only way to force repositories through a defined reusable workflow (we don't want our product teams to have to maintain them).
This allows us to dispatch an event like so:
{
"event_type": "security_scan::$product_name::$version",
"client_payload": {
"field": "value"
}
}
Then it is far easier to identify which product and version a workflow is running when looking in the Actions tab of our central release repository.