github / codeql-action

Actions for running CodeQL analysis
MIT License
1.12k stars 310 forks source link

Avoid warning on workflow_call triggers #2274

Closed aeisenberg closed 3 months ago

aeisenberg commented 3 months ago

Typically, we warn when there is no push trigger in the workflow file that triggered this run. However, when this action is triggered by a workflow_call event, we assume there is a custom process for triggering the action and we don't want to warn in this case.

Merge / deployment checklist

aeisenberg commented 3 months ago

I implemented the suggested changes, made a refactoring to make things a bit easier to understand, and added a handful of tests to verify.