-
-
Notifications
You must be signed in to change notification settings - Fork 135
Description
Pre-submission checks
- I am not reporting a bug (crash, false positive/negative, etc). These must be filed via the bug report template.
- I have looked through both the open and closed issues for a duplicate request.
What's the problem this feature will solve?
I perform some open source scanning/bug bounty with this tool and when scanning large amounts of repositories I would like to filter results by which ones have "dangerous" event triggers and/or permissions. (for example contents: write on pull_request_target event)
Describe the solution you'd like
In the output of the findings, two new fields event_triggers and permissions are included in the finding location. the event_triggers should contain the names of the event that can trigger the workflow and the permissions field should contain the computed permissions of the step/workflow (i.e. if the workflow has write for id_token and the step has write for contents, If there is a finding within the step the permissions field should indicate write for both contents and id_token
Additional context
This will make alerting and detection easier for any users who use this tool to either search or continually monitor their workflows.
Happy to get started on a PR if there is interest in this feature!