Skip to content

Incorrect EE definition detection for collection meta/execution-environment.yml #4710

@dbrennand

Description

@dbrennand
Summary

In an Ansible collection, Ansible Lint is detecting the meta/execution-environment.yml file as an Execution Environment definition when it is actually collection level metadata.

Please see below for context:

Issue Type
  • Bug Report
OS / ENVIRONMENT
uv run ansible-lint --version    
ansible-lint 25.7.0 using ansible-core:2.19.0 ansible-compat:25.6.0 ruamel-yaml:0.18.14 ruamel-yaml-clib:0.2.12
  • ansible installation method: pip
  • ansible-lint installation method: pip
STEPS TO REPRODUCE
Image
Desired Behavior

Ansible Lint does not detect this file as an Execution Environment Definition and does not raise the below error.

Actual Behavior
schema[execution-environment]: $ 'version' is a required property. See https://ansible-builder.readthedocs.io/en/latest/definition/
meta/execution-environment.yml:1

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions