{"id":7747927,"name":"Flydiverny/github-typescript","ecosystem":"actions","description":"Run github-script using typescript","homepage":"","licenses":"mit","normalized_licenses":["MIT"],"repository_url":"https://github.com/Flydiverny/github-typescript","keywords_array":["actions","github-api","javascript","typescript"],"namespace":"Flydiverny","versions_count":2,"first_release_published_at":"2023-04-10T03:07:20.000Z","latest_release_published_at":"2023-12-14T10:08:14.000Z","latest_release_number":"v7","last_synced_at":"2026-03-17T09:09:05.395Z","created_at":"2023-05-17T11:35:05.516Z","updated_at":"2026-03-17T09:09:05.395Z","registry_url":"https://github.com/Flydiverny/github-typescript","install_command":null,"documentation_url":null,"metadata":{"name":"github-typescript","description":"Run github-script using typescript","author":"Flydiverny","branding":{"icon":"code","color":"purple"},"inputs":{"script-file":{"description":"The script to run","required":true},"github-token":{"description":"The GitHub token used to create an authenticated client","default":"${{ github.token }}","required":false},"debug":{"description":"Whether to tell the GitHub client to log details of its requests. true or false. Default is to run in debug mode when the GitHub Actions step debug logging is turned on.","default":"${{ runner.debug == '1' }}"},"user-agent":{"description":"An optional user-agent string","default":"actions/github-script"},"previews":{"description":"A comma-separated list of GraphQL API previews to accept"},"result-encoding":{"description":"Either \"string\" or \"json\" (default \"json\")—how the result will be encoded","default":"json"},"retries":{"description":"The number of times to retry a request","default":"0"},"retry-exempt-status-codes":{"description":"A comma separated list of status codes that will NOT be retried e.g. \"400,500\". No effect unless `retries` is set","default":400401403404422},"base-url":{"description":"An optional GitHub REST API URL to connect to a different GitHub instance. For example, https://my.github-enterprise-server.com/api/v3","required":false}},"outputs":{"result":{"description":"The return value of the script, stringified with `JSON.stringify`","value":"${{ steps.exec.outputs.result }}"}},"runs":{"using":"composite","steps":[{"shell":"bash","name":"transform TS using esbuild","env":{"SCRIPT_FILE":"${{ inputs.script-file }}"},"run":"${{ github.action_path }}/node_modules/@esbuild/linux-x64/bin/esbuild $SCRIPT_FILE \\\n  --bundle \\\n  --outdir=$(dirname \"${SCRIPT_FILE}\") \\\n  --packages=external \\\n  --format=esm \\\n  --out-extension:.js=.mjs \\\n  --platform=node\n"},{"uses":"actions/github-script@v7","id":"exec","with":{"github-token":"${{inputs.github-token}}","debug":"${{inputs.debug}}","user-agent":"${{inputs.user-agent}}","previews":"${{inputs.previews}}","result-encoding":"${{inputs.result-encoding}}","retries":"${{inputs.retries}}","retry-exempt-status-codes":"${{inputs.retry-exempt-status-codes}}","base-url":"${{inputs.base-url}}","script":"const path = require('path')\nconst file = '${{ inputs.script-file }}'\n\nconst globals = {\n  require,\n  __original_require__,\n  github,\n  context,\n  core,\n  exec,\n  glob,\n  io,\n  fetch\n}\n\nObject.assign(global, globals)\nconst { default: run } = await import(path.resolve(file.replace(/\\.[^/.]+$/, \".mjs\")))\n\nif (run) {\n  return await run(globals)\n}\n"}}]},"default_branch":"main","path":null},"repo_metadata":{"id":82108565,"uuid":"598300613","full_name":"Flydiverny/github-typescript","owner":"Flydiverny","description":"Write workflows scripting the GitHub API in TypeScript!","archived":false,"fork":false,"pushed_at":"2024-06-10T22:34:02.000Z","size":7721,"stargazers_count":10,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-19T01:30:07.733Z","etag":null,"topics":["actions","github-api","javascript","typescript"],"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/Flydiverny.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,"zenodo":null}},"created_at":"2023-02-06T20:27:19.000Z","updated_at":"2025-09-10T18:05:34.000Z","dependencies_parsed_at":"2023-12-14T10:41:43.725Z","dependency_job_id":"72470387-4137-417b-9d9d-7a4955411e51","html_url":"https://github.com/Flydiverny/github-typescript","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Flydiverny/github-typescript","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flydiverny%2Fgithub-typescript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flydiverny%2Fgithub-typescript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flydiverny%2Fgithub-typescript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flydiverny%2Fgithub-typescript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Flydiverny","download_url":"https://codeload.github.com/Flydiverny/github-typescript/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flydiverny%2Fgithub-typescript/sbom","scorecard":{"id":51290,"data":{"date":"2025-08-11","repo":{"name":"github.com/Flydiverny/github-typescript","commit":"4ee73120d9d1d98869b88d8f76e8fcead0bb88ee"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.6,"checks":[{"name":"Binary-Artifacts","score":9,"reason":"binaries present in source code","details":["Warn: binary detected: node_modules/@esbuild/linux-x64/bin/esbuild:1"],"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":"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":"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 0/15 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":"Token-Permissions","score":9,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'contents' permission set to 'read': .github/workflows/test.yaml:13","Warn: no topLevel permission defined: .github/workflows/test.yaml: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":"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":"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":"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":"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":"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":"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/test.yaml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/Flydiverny/github-typescript/test.yaml/main?enable=pin","Info:   0 out of   1 GitHub-owned 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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 3 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"}}]},"last_synced_at":"2025-08-14T23:45:41.292Z","repository_id":82108565,"created_at":"2025-08-14T23:45:41.292Z","updated_at":"2025-08-14T23:45:41.292Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276166263,"owners_count":25596393,"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-09-20T02:00:10.207Z","response_time":63,"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"},"owner_record":{"login":"Flydiverny","name":"Markus Maga","uuid":"326929","kind":"user","description":"FullStack dev playing in DevOps land and improving DevExp with internal toys!","email":"","website":"https://markusmaga.se","location":"Sweden","twitter":"flydiverny","company":"@doktor-se","icon_url":"https://avatars.githubusercontent.com/u/326929?u=e07e71ed3524375be990df401cdfbab1e88dcfc2\u0026v=4","repositories_count":87,"last_synced_at":"2024-11-24T19:52:27.166Z","metadata":{"has_sponsors_listing":false},"html_url":"https://github.com/Flydiverny","funding_links":[],"total_stars":35,"followers":40,"following":37,"created_at":"2022-11-08T18:42:18.966Z","updated_at":"2024-11-24T19:52:27.167Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Flydiverny","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Flydiverny/repositories"},"tags":[{"name":"v7","sha":"d41cb558118fe0fa19d42e56c46805c0c88beac9","kind":"tag","published_at":"2023-12-14T10:08:14.000Z","download_url":"https://codeload.github.com/Flydiverny/github-typescript/tar.gz/v7","html_url":"https://github.com/Flydiverny/github-typescript/releases/tag/v7","dependencies_parsed_at":"2023-12-21T10:29:08.726Z","dependency_job_id":null,"purl":"pkg:github/Flydiverny/github-typescript@v7","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flydiverny%2Fgithub-typescript/tags/v7","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flydiverny%2Fgithub-typescript/tags/v7/manifests"},{"name":"v1","sha":"c383ee0aad235d27192a26af217408bf25745c7d","kind":"tag","published_at":"2023-04-10T03:07:20.000Z","download_url":"https://codeload.github.com/Flydiverny/github-typescript/tar.gz/v1","html_url":"https://github.com/Flydiverny/github-typescript/releases/tag/v1","dependencies_parsed_at":"2023-06-02T00:39:57.331Z","dependency_job_id":null,"purl":"pkg:github/Flydiverny/github-typescript@v1","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flydiverny%2Fgithub-typescript/tags/v1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flydiverny%2Fgithub-typescript/tags/v1/manifests"}]},"repo_metadata_updated_at":"2025-09-20T22:14:40.566Z","dependent_packages_count":0,"downloads":null,"downloads_period":null,"dependent_repos_count":0,"rankings":{"downloads":null,"dependent_repos_count":40.26221692491061,"dependent_packages_count":0.0,"stargazers_count":15.690188641580995,"forks_count":21.674483584472608,"docker_downloads_count":null,"average":19.406722287741054},"purl":"pkg:githubactions/Flydiverny/github-typescript","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/actions/Flydiverny/github-typescript","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/actions/Flydiverny/github-typescript","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/actions/Flydiverny/github-typescript/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":{"last_synced_at":"2025-05-13T12:54:55.614Z","issues_count":0,"pull_requests_count":11,"avg_time_to_close_issue":null,"avg_time_to_close_pull_request":1209933.5,"issues_closed_count":0,"pull_requests_closed_count":10,"pull_request_authors_count":2,"issue_authors_count":0,"avg_comments_per_issue":null,"avg_comments_per_pull_request":2.909090909090909,"merged_pull_requests_count":4,"bot_issues_count":0,"bot_pull_requests_count":9,"past_year_issues_count":0,"past_year_pull_requests_count":4,"past_year_avg_time_to_close_issue":null,"past_year_avg_time_to_close_pull_request":805846.6666666666,"past_year_issues_closed_count":0,"past_year_pull_requests_closed_count":3,"past_year_pull_request_authors_count":1,"past_year_issue_authors_count":0,"past_year_avg_comments_per_issue":null,"past_year_avg_comments_per_pull_request":2.75,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":4,"past_year_merged_pull_requests_count":0,"issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flydiverny%2Fgithub-typescript/issues","maintainers":[{"login":"Flydiverny","count":2,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/Flydiverny"}],"active_maintainers":[]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/Flydiverny%2Fgithub-typescript/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/Flydiverny%2Fgithub-typescript/version_numbers","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/Flydiverny%2Fgithub-typescript/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/Flydiverny%2Fgithub-typescript/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/Flydiverny%2Fgithub-typescript/codemeta","maintainers":[]}