Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ansible/ansible-lint-action
❗️Replaced by https://github.com/marketplace/actions/run-ansible-lint
https://github.com/ansible/ansible-lint-action
actions ansible ansible-devtools ansible-lint github-action github-actions hacktoberfest linter linters
Last synced: about 2 months ago
JSON representation
❗️Replaced by https://github.com/marketplace/actions/run-ansible-lint
- Host: GitHub
- URL: https://github.com/ansible/ansible-lint-action
- Owner: ansible
- License: mit
- Archived: true
- Created: 2019-02-25T22:42:21.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-08-02T12:35:46.000Z (over 1 year ago)
- Last Synced: 2024-09-19T14:02:23.532Z (about 2 months ago)
- Topics: actions, ansible, ansible-devtools, ansible-lint, github-action, github-actions, hacktoberfest, linter, linters
- Homepage: https://github.com/marketplace/actions/run-ansible-lint
- Size: 135 KB
- Stars: 254
- Watchers: 18
- Forks: 132
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Notice
This is unmaintained. Please use the current Github action here: https://github.com/marketplace/actions/run-ansible-lint
# Ansible Lint for GitHub Action
This action allows you to run `ansible-lint` on your codebase without having
to install it yourself.## Usage
To use the action simply create an `ansible-lint.yml` (or choose custom `*.yml` name) in the `.github/workflows/` directory.
For example:
```yaml
name: ansible-lint
on: [push, pull_request]jobs:
build:
name: Ansible Lint # Naming the build is important to use it as a status check
runs-on: ubuntu-lateststeps:
# Important: This sets up your GITHUB_WORKSPACE environment variable
- uses: actions/checkout@v3
with:
fetch-depth: 0 # needed for progressive mode to work- name: Run ansible-lint
# replace `main` with any valid ref, or tags like `v6`
uses: ansible/ansible-lint-action@main
# optional:
# with:
# path: "playbooks/" # <-- only one value is allowed
```Due to limitations on how GitHub Actions are processing arguments, we do not
plan to provide extra options. You will have to make use of [ansible-lint own configuration file](https://ansible-lint.readthedocs.io/configuring/)
for altering its behavior.If you still want custom arguments, you can still fork the action and modify
its `action.yml` file.> TIP: N.B. Use `ansible/ansible-lint-action@v6` or any other valid tag, or branch, or commit SHA to pin the action to use a specific version.
Alternatively, you can run the ansible lint only on certain branches:
```yaml
on:
push:
branches:
- stable
- release/v*
```or on various [events](https://help.github.com/en/articles/events-that-trigger-workflows)
## License
The Dockerfile and associated scripts and documentation in this project are released under the [MIT](license).
## Credits
The initial GitHub action has been created by [Stefan Stölzle](https://github.com/stoe) at
[stoe/actions](https://github.com/stoe/actions).