
Summary
The rule 'GitHub Action Failed' is designed to detect failures in monitored GitHub actions. By auditing the GitHub actions and workflows, this rule helps ensure that any unsuccessful executions are promptly identified and investigated. The rule checks for events of the type 'workflows.completed_workflow_run' where the 'conclusion' key indicates a failure. If such events occur and involve actions that are explicitly monitored in the configuration, an alert can be generated. This is crucial for maintaining CI/CD pipeline integrity, as failed actions may disrupt development workflows or indicate deeper issues that may need resolution. The detection relies on logs from GitHub's audit trails which provide structured details about workflow executions, including timestamps, action results, and associated repository information. The rule includes multiple test cases to validate its operational effectiveness, ensuring that failure scenarios are correctly identified while also allowing for properly configured actions that shouldn't trigger alerts if they are exempted or properly accounted for.
Categories
- Cloud
- Infrastructure
Data Sources
- User Account
- Application Log
- Command
Created: 2023-02-15