Files
actions/ansible-lint-fix
Ismo Vuorinen 5fc2d6a4ca refactor(python): migrate to native setup-python caching
Replace common-cache with native caching in Python actions for better
performance and maintainability.

python-lint-fix changes:
- Add package manager detection (uv, poetry, pipenv, pip)
- Use setup-python's native cache parameter dynamically
- Remove redundant common-cache step
- Support uv with pip-compatible caching
- Enhanced cache-dependency-path to include all lock files

ansible-lint-fix changes:
- Add setup-python with native pip caching (Python 3.11)
- Remove redundant common-cache step
- Simplify dependency installation

Benefits:
- Native caching is more efficient and better maintained
- Supports modern Python tooling (uv, poetry, pipenv)
- Reduces common-cache dependencies from 11 to 7 actions
- setup-python handles cache invalidation automatically

setup-python cache types supported: pip, pipenv, poetry
2025-11-20 11:27:02 +02:00
..

ivuorinen/actions/ansible-lint-fix

Ansible Lint and Fix

Description

Lints and fixes Ansible playbooks, commits changes, and uploads SARIF report.

Inputs

name description required default
token

GitHub token for authentication

false ""
username

GitHub username for commits

false github-actions
email

GitHub email for commits

false github-actions@github.com
max-retries

Maximum number of retry attempts for pip install operations

false 3

Outputs

name description
files_changed

Number of files changed by linting

lint_status

Linting status (success/failure)

sarif_path

Path to SARIF report file

Runs

This action is a composite action.

Usage

- uses: ivuorinen/actions/ansible-lint-fix@main
  with:
    token:
    # GitHub token for authentication
    #
    # Required: false
    # Default: ""

    username:
    # GitHub username for commits
    #
    # Required: false
    # Default: github-actions

    email:
    # GitHub email for commits
    #
    # Required: false
    # Default: github-actions@github.com

    max-retries:
    # Maximum number of retry attempts for pip install operations
    #
    # Required: false
    # Default: 3