{"id":18028049,"url":"https://github.com/karancode/yamllint-github-action","last_synced_at":"2025-03-27T02:31:11.723Z","repository":{"id":45514683,"uuid":"229691577","full_name":"karancode/yamllint-github-action","owner":"karancode","description":"Github Action for linting yaml files using yamllint","archived":false,"fork":false,"pushed_at":"2023-10-09T10:13:42.000Z","size":24,"stargazers_count":27,"open_issues_count":8,"forks_count":17,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-22T03:26:30.152Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/karancode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-12-23T06:33:53.000Z","updated_at":"2024-10-14T08:26:57.000Z","dependencies_parsed_at":"2024-08-13T14:30:20.875Z","dependency_job_id":null,"html_url":"https://github.com/karancode/yamllint-github-action","commit_stats":{"total_commits":12,"total_committers":7,"mean_commits":"1.7142857142857142","dds":0.75,"last_synced_commit":"ac72e14cd4d78ecade523bd7a255822df409e8d7"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karancode%2Fyamllint-github-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karancode%2Fyamllint-github-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karancode%2Fyamllint-github-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karancode%2Fyamllint-github-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/karancode","download_url":"https://codeload.github.com/karancode/yamllint-github-action/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245025996,"owners_count":20549071,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-30T08:14:05.808Z","updated_at":"2025-03-27T02:31:11.434Z","avatar_url":"https://github.com/karancode.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# yamllint-github-action\n\nYamllint GitHub Actions allow you to execute `yamllint` command within GitHub Actions.\n\nThe output of the actions can be viewed from the Actions tab in the main repository view. If the actions are executed on a pull request event, a comment may be posted on the pull request.\n\nYamllint GitHub Actions is a single GitHub Action that can be executed on different directories depending on the content of the GitHub Actions YAML file.\n\n## Success Criteria\n\nAn exit code of `0` is considered a successful execution.\n\n## Usage\n\nThe most common usage is to run `yamllint` on a file/directory. A comment will be posted to the pull request depending on the output of the Yamllint command being executed. This workflow can be configured by adding the following content to the GitHub Actions workflow YAML file.\n\n```yaml\nname: 'Yamllint GitHub Actions'\non:\n  - pull_request\njobs:\n  yamllint:\n    name: 'Yamllint'\n    runs-on: ubuntu-latest\n    steps:\n      - name: 'Checkout'\n        uses: actions/checkout@master\n      - name: 'Yamllint'\n        uses: karancode/yamllint-github-action@master\n        with:\n          yamllint_file_or_dir: '\u003cyaml_file_or_dir\u003e'\n          yamllint_strict: false\n          yamllint_comment: true\n        env:\n          GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n```\n\nThis was a simplified example showing the basic features of this Yamllint GitHub Actions.\n\n## Inputs\n\nInputs configure Yamllint GitHub Actions to perform lint action.\n\n| Parameter                    | Default | Description                                                                                                               |\n|------------------------------|---------|---------------------------------------------------------------------------------------------------------|\n| `yamllint_file_or_dir`       | .       | (Optional) The file or directory to run `yamllint` on (assumes that the directory contains *.yaml file) |\n| `yamllint_strict`            | `false` | (Optional) Yamllint strict option.                                  |\n| `yamllint_config_filepath`   | `empty` | (Optional) Path to a custom config file.                            |\n| `yamllint_config_datapath`   | `empty` | (Optional) Custom configuration (as YAML source).                   |\n| `yamllint_format`            | `auto`  | (Optional) Format for parsing.                                      |\n| `yamllint_comment`           | `false` | (Optional) Comment on GitHub pull requests, possible are true,false |\n\n## Outputs\n\nOutputs are used to pass information to subsequent GitHub Actions steps.\n\n* `yamllint_output` - The Yamllint build outputs.\n\n## Secrets\n\nSecrets are similar to inputs except that they are encrypted and only used by GitHub Actions. It's a convenient way to keep sensitive data out of the GitHub Actions workflow YAML file.\n\n* `GITHUB_ACCESS_TOKEN` - (Optional) The GitHub API token used to post comments to pull requests. Not required if the `yamllint_comment` input is set to `false`.\n\n## Development\n\n### Testing\n\nFor testing the [bats](https://github.com/bats-core/bats-core) testing framework is used.\nTests can be run with ``./tests/run.bats`` but first you need to install [bats](https://github.com/bats-core/bats-core#installation).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarancode%2Fyamllint-github-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkarancode%2Fyamllint-github-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarancode%2Fyamllint-github-action/lists"}