Skip to content

fix(misconf): reject nil plays during playbook parsing#10273

Open
nikpivkin wants to merge 1 commit intoaquasecurity:mainfrom
nikpivkin:parse-ansible-pl
Open

fix(misconf): reject nil plays during playbook parsing#10273
nikpivkin wants to merge 1 commit intoaquasecurity:mainfrom
nikpivkin:parse-ansible-pl

Conversation

@nikpivkin
Copy link
Contributor

Description

Prevent panic when accessing nil plays by filtering them out during parsing.

This PR is opened from a correct fork and replaces #10132

Related issues

Checklist

  • I've read the guidelines for contributing to this repository.
  • I've followed the conventions in the PR title.
  • I've added tests that prove my fix is effective or that my feature works.
  • I've updated the documentation with the relevant information (if needed).
  • I've added usage information (if the PR introduces new options)
  • I've included a "before" and "after" example to the description (if the PR is a user interface change).

@nikpivkin nikpivkin added the autoready Automatically mark PR as ready for review when all checks pass label Mar 2, 2026
@github-actions github-actions bot marked this pull request as ready for review March 2, 2026 05:59
@github-actions github-actions bot requested a review from simar7 as a code owner March 2, 2026 05:59
@github-actions github-actions bot removed the autoready Automatically mark PR as ready for review when all checks pass label Mar 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(ansible): invalid playbook YAML causes panic

1 participant