{"id":20801915,"url":"https://github.com/philips-software/github-actions-linter","last_synced_at":"2025-12-26T04:52:26.556Z","repository":{"id":239734252,"uuid":"794938653","full_name":"philips-software/github-actions-linter","owner":"philips-software","description":"Action to lint action and workflow yaml files","archived":false,"fork":false,"pushed_at":"2024-05-16T14:45:03.000Z","size":38,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-18T12:34:25.303Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"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/philips-software.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2024-05-02T09:05:39.000Z","updated_at":"2024-12-18T18:05:34.000Z","dependencies_parsed_at":"2025-01-18T12:39:23.997Z","dependency_job_id":null,"html_url":"https://github.com/philips-software/github-actions-linter","commit_stats":null,"previous_names":["philips-software/github-actions-linter"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philips-software%2Fgithub-actions-linter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philips-software%2Fgithub-actions-linter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philips-software%2Fgithub-actions-linter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philips-software%2Fgithub-actions-linter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/philips-software","download_url":"https://codeload.github.com/philips-software/github-actions-linter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243147272,"owners_count":20243745,"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-11-17T18:26:09.987Z","updated_at":"2025-12-26T04:52:26.515Z","avatar_url":"https://github.com/philips-software.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Github Actions validator v2\n\nThis repository contains an action to validate the Github Actions workflows.\n\n## Description\n\nUnder the hood, it uses https://github.com/rhysd/actionlint\n\nThe action steps are:\n\n- Download `actionlint` using ASDF\n- Lint the workflows, and generate an output with the linted (and errored) files\n- Post this output on a PR comment\n\n## Example\n\n```yaml\npermissions:\n  contents: read # checkout\n  pull-requests: write # post comment\n\njobs:\n  actions-validator:\n    name: Run Github Actions validator\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout repository\n        uses: actions/checkout@v4\n\n      - name: Validate Github Actions workflows\n        uses: philips-software/github-actions-linter@v2\n```\n\n## ShellCheck rules\n\nThis action uses actionlint, which in turn uses [ShellCheck](https://www.shellcheck.net/wiki/) to validate script steps.\n\n### Disable ShellCheck rules for all workflows\n\nAlthough we don't recommend it, you can disable specific ShellCheck rules for all workflows checked, with the `shellcheck-disable-codes` input:\n\n```yaml\n- name: Validate Github Actions workflows\n  uses: philips-software/github-actions-linter@v2\n  with:\n    shellcheck-disable-codes: SC2052,SC2034\n```\n\n### Disable a ShellCheck rule for a specific line\n\nYou can disable a specific rule directly within your script, using the [ShellCheck syntax](https://www.shellcheck.net/wiki/Ignore):\n\n```yaml\n# The workflow that gets validated\n- name: Do stuff\n  run: |\n    foo=12\n    # shellcheck disable=SC2090\n    echo $foo\n```\n\n## Development\n\nGithub recommends having multiple kind of tags for the actions, a full SemVer tag (e.g. `vX.Y.Z`), as well as a major-only tag (e.g. `vX`).\n\nWhen modifying this action if the changes:\n\n- don't modify the functionalities, bump the patch version (e.g. `Z` in `vX.Y.Z`)\n- add new functionalities, without breaking backward compatibility, bump the minor version and reset the patch version (e.g. `Y` in `X.Y.0`)\n- break backward compatibility, bump the major version and reset the other versions (e.g. `X` in `vX.0.0`)\n\nNote that after a version bump, the major-only tag must be updated as well.\n\n\u003e The major-only tag has to be force-pushed as Github doesn't allow to modify tags by default.\n\nFull example:\n\n```sh\ngit tag\n# v1, v1.0.0\n\nopen action.yml\ngit commit -am \"Chore: some patch modifications\"\n\n# we create the patch version tag\ngit tag v1.0.1\n# and the major-only tag\ngit tag -f v1\n\ngit push origin v1.0.1\ngit push -f origin v1\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilips-software%2Fgithub-actions-linter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphilips-software%2Fgithub-actions-linter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilips-software%2Fgithub-actions-linter/lists"}