-
Notifications
You must be signed in to change notification settings - Fork 705
Open
Labels
newTriage requiredTriage required
Description
Summary
Using ansible-lint at a pinned version appears not to work, e.g. ansible/[email protected]
. It will use main
.
Issue Type
- Bug Report
OS / ENVIRONMENT
Ansible lint version: Attempting to use v25.8.2
via GHA tool. Actually using main because of the apparent bug.
ansible-lint 25.8.3.dev19 using ansible-core:2.19.2 ansible-compat:25.8.1 ruamel-yaml:0.18.15 ruamel-yaml-clib:0.2.12
OS: GHA's runs-on: ubuntu-latest
.
- ansible installation method: pip
- ansible-lint installation method: pip
STEPS TO REPRODUCE
- Create a GHA job to run lint on a repo (see below code block).
- Create any valid code for the GHA to checkout and lint.
name: ansible-lint
on: [pull_request]
jobs:
build:
name: Ansible Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run ansible-lint
- uses: ansible/[email protected]
Desired Behavior
Want it to checkout the ref I specify via ansible-lint@version
.
Actual Behavior
It checks out main.

Code changes
I have made a PR to attempt to fix. Please feel free to modify as appropriate.
#4774
Metadata
Metadata
Assignees
Labels
newTriage requiredTriage required
Type
Projects
Status
No status