Skip to content

Commit

Permalink
bugfix: collect actions from subdirectories of .github/workflows (#477)
Browse files Browse the repository at this point in the history
  • Loading branch information
woodruffw authored Jan 19, 2025
1 parent a91a021 commit fa0aa8c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions docs/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ of `zizmor`.

Nothing to see here (yet!)

### Bug Fixes 🐛

* Fixed a bug where `zizmor` would fail to discover actions within
subdirectories of `.github/workflows` (#477)

## v1.2.2

### Bug Fixes 🐛
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ fn collect_from_repo_dir(
{
let action = Action::from_file(entry_path, Some(top_dir))?;
registry.register_input(action.into())?;
} else if entry_path.is_dir() && !entry_path.ends_with(".github/workflows") {
} else if entry_path.is_dir() {
// Recurse and limit the collection mode to only actions.
collect_from_repo_dir(top_dir, entry_path, &CollectionMode::ActionsOnly, registry)?;
}
Expand Down

0 comments on commit fa0aa8c

Please sign in to comment.