{"id":30056404,"url":"https://github.com/satackey/action-js-inline","last_synced_at":"2026-03-11T14:07:22.292Z","repository":{"id":54176444,"uuid":"249314296","full_name":"satackey/action-js-inline","owner":"satackey","description":"Run JavaScript instead of shell script in GitHub Actions","archived":false,"fork":false,"pushed_at":"2022-12-20T13:26:36.000Z","size":113,"stargazers_count":26,"open_issues_count":2,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-03T06:49:36.859Z","etag":null,"topics":["github-action","github-action-javascript","github-actions","github-actions-javascript","javascript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/satackey.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}},"created_at":"2020-03-23T02:10:35.000Z","updated_at":"2025-03-10T03:57:08.000Z","dependencies_parsed_at":"2023-01-04T12:30:37.741Z","dependency_job_id":null,"html_url":"https://github.com/satackey/action-js-inline","commit_stats":{"total_commits":22,"total_committers":3,"mean_commits":7.333333333333333,"dds":0.09090909090909094,"last_synced_commit":"3a7d2f354bd40d9a02507772062211aa317fdc24"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/satackey/action-js-inline","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/satackey%2Faction-js-inline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/satackey%2Faction-js-inline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/satackey%2Faction-js-inline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/satackey%2Faction-js-inline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/satackey","download_url":"https://codeload.github.com/satackey/action-js-inline/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/satackey%2Faction-js-inline/sbom","scorecard":{"id":801345,"data":{"date":"2025-08-11","repo":{"name":"github.com/satackey/action-js-inline","commit":"3a7d2f354bd40d9a02507772062211aa317fdc24"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/release.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 2/22 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/satackey/action-js-inline/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/satackey/action-js-inline/release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/satackey/action-js-inline/release.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 4 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'","Warn: branch protection not enabled for branch 'release-master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":8,"reason":"2 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-mfwh-5m23-j46w","Warn: Project is vulnerable to: GHSA-7r3h-m5j6-3q42"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-23T10:34:38.858Z","repository_id":54176444,"created_at":"2025-08-23T10:34:38.858Z","updated_at":"2025-08-23T10:34:38.858Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001135,"owners_count":26083022,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["github-action","github-action-javascript","github-actions","github-actions-javascript","javascript"],"created_at":"2025-08-07T22:59:17.496Z","updated_at":"2025-10-09T09:32:13.776Z","avatar_url":"https://github.com/satackey.png","language":"TypeScript","readme":"# satackey/action-js-inline\nRun JavaScript instead of shell script in GitHub Actions.\n\n## Example\n```yaml\n- name: Output current branch name \u0026 date\n  # To use latest action, specify \"release-master\" instead of \"v0.0.2\"\n  uses: satackey/action-js-inline@v0.0.2\n  id: getdata\n  with:\n    # Edit the following line to install packages required to run your script.\n    required-packages: axios\n    script: |\n      const core = require('@actions/core')\n      const axios = require('axios')\n\n      // branch\n      const ref = process.env.GITHUB_REF // refs/heads/master\n      const branch = ref.split('/').slice(-1)[0] // refs/heads/master → master\n      console.log(`branch: ${branch}`)\n      core.setOutput('branch', branch)\n\n      // date\n      const dateResponse = await axios('https://ntp-a1.nict.go.jp/cgi-bin/json')\n      /* {\n          \"id\": \"ntp-a1.nict.go.jp\",\n          \"it\": 0.000,\n          \"st\": 1585285722.922,\n          \"leap\": 36,\n          \"next\": 1483228800,\n          \"step\": 1\n      } */\n      const date = new Date(dateResponse.data.st)\n      console.log(`date: ${date}`)\n      core.setOutput('date', date)\n\n# You can use datas as ${{ steps.getdata.outputs.branch }} and ${{ steps.getdata.outputs.date }}\n```\n\n## Inputs\n- `package-manager` required, default: `npm`  \n  The package manager used to install the required packages.\n  Either `npm` or `yarn`.\n\n- `required-packages` optional  \n  Line or space separated package names required to execute the scirpt.\n  \u003e Info: The following packages are automatically installed even if you do not write them.\n  \u003e - [`@actions/core`](https://github.com/actions/toolkit/tree/master/packages/core)\n  \u003e - [`@actions/exec`](https://github.com/actions/toolkit/tree/master/packages/exec)\n  \u003e - [`@actions/github`](https://github.com/actions/toolkit/tree/master/packages/github)\n  \u003e - [`actions-exec-listener`](https://github.com/satackey/actions-exec-listener)\n\n- `script` **Required**\n    The JavaScript snippet to be executed. The [await](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Operators/await) operator is supported.\n\n## Contribution\nPRs are accepted.\n\nIf you are having trouble or feature request, [post new issue](https://github.com/satackey/action-js-inline/issues/new).\n\n\u003c!-- ## Another Example --\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsatackey%2Faction-js-inline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsatackey%2Faction-js-inline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsatackey%2Faction-js-inline/lists"}