Commit Graph
3 Commits
Author SHA1 Message Date
Andoni A. 32faf9896a fix(github_actions): remove unused GITHUB_USERNAME 2025-11-06 17:47:17 +01:00
Andoni A. 2800b34d54 feat(github_actions): enhance workflow exclusion with full path support
Zizmor doesn't support --exclude flag natively, so implemented
exclusion at Prowler level by filtering findings after scan completes.

The exclusion now supports both pattern types:
- Filename patterns: 'test-*.yml' matches any file named test-*.yml
- Full path patterns: '.github/workflows/test-*.yml' matches specific paths
- Subdirectory patterns: '**/experimental/*.yml' matches subdirs

Changes:
- Added fnmatch import for glob pattern matching
- Removed invalid --exclude flags from zizmor command
- Implemented _should_exclude_workflow() with dual matching logic
- Filter findings during processing based on exclusion patterns
- Added comprehensive test covering all pattern types
- Updated documentation with examples of both pattern types
2025-11-06 17:11:15 +01:00
Andoni A. 71acf67bf6 docs(github_actions): migrate docs format to mdx 2025-11-06 16:08:05 +01:00