Title: support `script-file` - path to a file. · Issue #714 · actions/github-script · GitHub
Open Graph Title: support `script-file` - path to a file. · Issue #714 · actions/github-script
X Title: support `script-file` - path to a file. · Issue #714 · actions/github-script
Description: Is your feature request related to a problem? Please describe. passing JS as a multiline string parameter makes the script inaccessible to lint tools. Describe the solution you'd like It would be nice if I could write the action in a JS ...
Open Graph Description: Is your feature request related to a problem? Please describe. passing JS as a multiline string parameter makes the script inaccessible to lint tools. Describe the solution you'd like It would be n...
X Description: Is your feature request related to a problem? Please describe. passing JS as a multiline string parameter makes the script inaccessible to lint tools. Describe the solution you'd like It would ...
Opengraph URL: https://github.com/actions/github-script/issues/714
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"support `script-file` - path to a file.","articleBody":"**Is your feature request related to a problem? Please describe.**\npassing JS as a multiline string parameter makes the script inaccessible to lint tools.\n\n**Describe the solution you'd like**\nIt would be nice if I could write the action in a JS file, enjoying linters and any in-IDE help I can get, while still coding for `github-script`.\n\n**Describe alternatives you've considered**\nThe work around, as documented is, for example, in a step that is a part of another compound action:\n```yaml\n - uses: actions/github-script@v7\n with:\n script: |\n const action = require('${{ github.action_path }}/action.js');\n await action({ core, context /* ... and more by need... */ });\n```\nand in `action.js` as sibling file to my `action.yml`\n```js\nmodule.exports = async ({ core, context, /* ... and more by need... */ }) => {\n //...\n}\n```\n\n**Additional context**\nwhich is a work around, and assumes a paths structure. \nThe action could support it just as easy :) \n\nGeneralizing from that - I believe we can support expecting just an absolute path, or a path relative to repo root (with the Distinction is if it starts with `/` - its absolute, input check should deny `file://` protocol.\n\n","author":{"url":"https://github.com/osher","@type":"Person","name":"osher"},"datePublished":"2026-04-24T15:19:40Z","url":"https://github.com/actions/github-script/issues/714"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a699c23f-2f14-8065-965c-353a2cf618bb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E952:3D97C8:29132DF:36B4304:6B01B74C |
| html-safe-nonce | 99b92cead9545baa3557831f973873d797fef9d31a16c70f616fab7825398d8d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOTUyOjNEOTdDODoyOTEzMkRGOjM2QjQzMDQ6NkIwMUI3NEMiLCJ2aXNpdG9yX2lkIjoiODMwNDMwNTk3MTM5MjUyNjE1NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 741bc2a28bc06bdd8d502de878eef6759ccbd72fa4a1e84c2478be79fd296229 |
| hovercard-subject-tag | issue:4323888419 |
| github-keyboard-shortcuts | repository,issues,actions,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/actions/github-script/714/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fe9ce76f097a7b57f5d23f7af7c30a7c75880eb18195259bb51481ac20ee8863/actions/github-script/issues/714 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fe9ce76f097a7b57f5d23f7af7c30a7c75880eb18195259bb51481ac20ee8863/actions/github-script/issues/714 |
| og:image:alt | Is your feature request related to a problem? Please describe. passing JS as a multiline string parameter makes the script inaccessible to lint tools. Describe the solution you'd like It would be n... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | osher |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/actions/github-script git https://github.com/actions/github-script.git |
| octolytics-dimension-user_id | 44036562 |
| octolytics-dimension-user_login | actions |
| octolytics-dimension-repository_id | 205262760 |
| octolytics-dimension-repository_nwo | actions/github-script |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 205262760 |
| octolytics-dimension-repository_network_root_nwo | actions/github-script |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width