{"id":13566618,"url":"https://github.com/ibiqlik/action-yamllint","last_synced_at":"2025-04-04T00:31:20.342Z","repository":{"id":36768042,"uuid":"215496380","full_name":"ibiqlik/action-yamllint","owner":"ibiqlik","description":"GitHub Action - Yaml Lint","archived":false,"fork":false,"pushed_at":"2023-07-24T08:22:10.000Z","size":33,"stargazers_count":95,"open_issues_count":5,"forks_count":41,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-29T14:31:06.206Z","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/ibiqlik.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":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-10-16T08:26:47.000Z","updated_at":"2024-10-23T05:03:29.000Z","dependencies_parsed_at":"2024-06-18T11:23:00.282Z","dependency_job_id":null,"html_url":"https://github.com/ibiqlik/action-yamllint","commit_stats":{"total_commits":25,"total_committers":6,"mean_commits":4.166666666666667,"dds":0.28,"last_synced_commit":"b74a2626a991d676b6ec243a6458ff86cccf2d2d"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibiqlik%2Faction-yamllint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibiqlik%2Faction-yamllint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibiqlik%2Faction-yamllint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibiqlik%2Faction-yamllint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ibiqlik","download_url":"https://codeload.github.com/ibiqlik/action-yamllint/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222951916,"owners_count":17063062,"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-08-01T13:02:13.260Z","updated_at":"2024-11-04T20:32:21.696Z","avatar_url":"https://github.com/ibiqlik.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# GitHub YAMLlint\n\nThis action executes `yamllint` (https://github.com/adrienverge/yamllint) against files or folder\n\n## Usage\n\nSimple as:\n\n```yaml\n- uses: ibiqlik/action-yamllint@v3\n```\n\n### Optional input parameters\n\n- `config_file` - Path to custom configuration\n- `config_data` - Custom configuration (as YAML source)\n- `file_or_dir` - Enter file/folder (space separated), wildcards accepted. Examples:\n  - `.` - run against all yaml files in a directory recursively (default)\n  - `file1.yaml`\n  - `file1.yaml file2.yaml`\n  - `kustomize/**/*.yaml mychart/*values.yaml`\n- `format` - Format for parsing output `[parsable,standard,colored,github,auto] (default: parsable)`\n- `strict` - Return non-zero exit code on warnings as well as errors `[true,false] (default: false)`\n- `no_warnings` - Output only error level problems `[true,false] (default: false)`\n\n**Note:** If `.yamllint` configuration file exists in your root folder, yamllint automatically uses it.\n\n### Outputs\n\n`logfile` - Path to yamllint log file\n\n`${{ steps.\u003cstep\u003e.outputs.logfile }}`\n\n**Note:** Each yamllint run (for example if you define multiple yamllint steps) has its own log\n\n### Example usage in workflow\n\n```yaml\n---\nname: Yaml Lint\non: [push]  # yamllint disable-line rule:truthy\njobs:\n  lintAllTheThings:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v3\n      - name: yaml-lint\n        uses: ibiqlik/action-yamllint@v3\n        with:\n          file_or_dir: myfolder/*values*.yaml\n          config_file: .yamllint.yml\n```\n\nOr just simply lint all yaml files in the repository:\n\n```yaml\n---\nname: Yaml Lint\non: [push]  # yamllint disable-line rule:truthy\njobs:\n  lintAllTheThings:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v3\n      - name: yaml-lint\n        uses: ibiqlik/action-yamllint@v3\n```\n\nConfig data examples:\n\n```yaml\n# Single line\nconfig_data: \"{extends: default, rules: {new-line-at-end-of-file: disable}}\"\n```\n\n``` yaml\n# Multi line\nconfig_data: |\n  extends: default\n  rules:\n    new-line-at-end-of-file:\n      level: warning\n    trailing-spaces:\n      level: warning\n```\n\nUse output to save/upload the log in artifact. Note, you must have `id` in the step running the yamllint action.\n\n```yaml\n---\nname: Yaml Lint\non: [push]  # yamllint disable-line rule:truthy\njobs:\n  lintAllTheThings:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v3\n      - id: yaml-lint\n        uses: ibiqlik/action-yamllint@v3\n\n      - run: echo ${{ steps.yaml-lint.outputs.logfile }}\n\n      - uses: actions/upload-artifact@v2\n        if: always()\n        with:\n          name: yamllint-logfile\n          path: ${{ steps.yaml-lint.outputs.logfile }}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibiqlik%2Faction-yamllint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fibiqlik%2Faction-yamllint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibiqlik%2Faction-yamllint/lists"}