{"id":16805503,"url":"https://github.com/ylemkimon/eslint-plugin-actions","last_synced_at":"2026-01-31T21:05:37.426Z","repository":{"id":38173842,"uuid":"288947977","full_name":"ylemkimon/eslint-plugin-actions","owner":"ylemkimon","description":"Lint JS inside GitHub Actions workflow","archived":false,"fork":false,"pushed_at":"2023-04-21T09:04:56.000Z","size":31242,"stargazers_count":1,"open_issues_count":10,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-27T23:52:54.473Z","etag":null,"topics":["eslint","eslint-plugin","eslintplugin","github-actions","github-script","javascript","linter"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/eslint-plugin-actions","language":"JavaScript","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/ylemkimon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2020-08-20T08:19:34.000Z","updated_at":"2023-07-25T14:38:30.000Z","dependencies_parsed_at":"2024-06-19T15:34:42.836Z","dependency_job_id":"92bda63b-d25f-479a-bb83-cdee4d809f2f","html_url":"https://github.com/ylemkimon/eslint-plugin-actions","commit_stats":{"total_commits":35,"total_committers":4,"mean_commits":8.75,"dds":0.5714285714285714,"last_synced_commit":"9d68d3438dd4040e07c34628428ffd0241e45ac8"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/ylemkimon/eslint-plugin-actions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ylemkimon%2Feslint-plugin-actions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ylemkimon%2Feslint-plugin-actions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ylemkimon%2Feslint-plugin-actions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ylemkimon%2Feslint-plugin-actions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ylemkimon","download_url":"https://codeload.github.com/ylemkimon/eslint-plugin-actions/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ylemkimon%2Feslint-plugin-actions/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28955274,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T18:30:42.805Z","status":"ssl_error","status_checked_at":"2026-01-31T18:30:19.593Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["eslint","eslint-plugin","eslintplugin","github-actions","github-script","javascript","linter"],"created_at":"2024-10-13T09:48:27.264Z","updated_at":"2026-01-31T21:05:37.379Z","avatar_url":"https://github.com/ylemkimon.png","language":"JavaScript","readme":"# eslint-plugin-actions\n[![npm](https://img.shields.io/npm/v/eslint-plugin-actions.svg)](https://www.npmjs.com/package/eslint-plugin-actions)\n[![CI](https://github.com/ylemkimon/eslint-plugin-actions/workflows/CI/badge.svg?branch=master\u0026event=push)](https://github.com/ylemkimon/eslint-plugin-actions/actions?query=workflow%3ACI)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n\nLint JS inside GitHub Actions workflow\n\n![A JS script in a GitHub workflow editor has red squiggly underlines. A tooltip explains the problem.](./screenshot.png)\n\n## Installation\n\nYou'll first need to install [ESLint](http://eslint.org) 8 or greater:\n```\n$ npm i eslint --save-dev\n$ yarn add -D eslint\n```\n\nNext, install `eslint-plugin-actions`:\n```\n$ npm install eslint-plugin-actions --save-dev\n$ yarn add -D eslint-plugin-actions\n```\n\n\n## Usage\n\nExtending the `plugin:actions/recommended` config will enable the processor on all workflow `.{yml,yaml}` files:\n```json\n{\n    \"extends\": [\"plugin:actions/recommended\"]\n}\n```\n\nCurrently, only literal blocks (`|`) are supported and it's recommended to use them:\n```yaml\n# .github/workflows/ci.yml\njobs:\n  build:\n    steps:\n    - uses: actions/github-script@v2\n      with:\n        script: |\n          // .github/workflows/ci.yml/0_build/0.js\n```\n\nThe autofixing (`--fix`) is supported, but it's still experimental and whitespace handling of YAML is different from JS, so be sure to check the result.\n\n\n### Advanced Configuration\n\nDotfiles are ignored by ESLint by default. To lint files inside `.github`, you'll need to add `!.github` to\n`.eslintignore` file or `ignorePatterns` of your configuration file:\n```gitignore\n!/.github\n```\n\nThen, add `actions` to the plugins section of your configuration file. You can omit the `eslint-plugin-` prefix:\n```json\n{\n    \"plugins\": [\"actions\"]\n}\n```\n\nUse the `processor` option in an `overrides` entry to enable the plugin on workflow YAML files:\n```json\n{\n    \"overrides\": [{\n        \"files\": [\".github/workflows/*.{yml,yaml}\"],\n        \"processor\": \"actions/actions\"\n    }]\n}\n```\n\nEach script inside a workflow has a virtual filename appended to the YAML file's path. It has the format of `[global index]_[job id]/[local index].js` (see the example above). [`overrides` glob patterns](https://eslint.org/docs/user-guide/configuring#configuration-based-on-glob-patterns) for these virtual filenames can customize configuration for scripts without affecting regular code. For more information on configuring processors, refer to the [ESLint documentation](https://eslint.org/docs/user-guide/configuring#specifying-processor):\n```json\n{\n    \"overrides\": [{\n        \"files\": [\".github/workflows/*.{yml,yaml}/*_build/*.js\"],\n        \"rules\": {\n            \"indent\": [\"error\", 2, {\"outerIIFEBody\": 0}]\n            ...\n        },\n        ...\n    }]\n}\n```\n\n### Rules\n\nThe script will be enclosed in an IIFE async function, when processed by ESLint:\n```js\n(async function(context, github, io, core) {\n...\n}());\n```\n\nTherefore, if `indent` or `indent-legacy` rule is used, the `outerIIFEBody` option should be set to `0` (see above). Furthermore, rules affecting the beginning and the end of the file, such as `unicode-bom`, `eol-last` and `no-multiple-empty-lines`, are ignored.\n\n\n## Supported Actions\n- [actions/github-script](https://github.com/actions/github-script)\n\n\n## Remark\n\nThis plugin is heavily inspired by and adapted from [eslint-plugin-markdown](https://github.com/eslint/eslint-plugin-markdown).\n\n## License\n\n[MIT License](./LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fylemkimon%2Feslint-plugin-actions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fylemkimon%2Feslint-plugin-actions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fylemkimon%2Feslint-plugin-actions/lists"}