{"id":26330702,"url":"https://github.com/iniva/action-repository-dispatch","last_synced_at":"2026-05-02T10:03:31.862Z","repository":{"id":37015094,"uuid":"325819743","full_name":"iniva/action-repository-dispatch","owner":"iniva","description":"Send repository_dispatch events with custom payloads","archived":false,"fork":false,"pushed_at":"2026-03-23T15:45:33.000Z","size":1758,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-24T13:19:18.088Z","etag":null,"topics":["actions","workflow"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iniva.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-12-31T14:49:11.000Z","updated_at":"2026-03-23T15:45:35.000Z","dependencies_parsed_at":"2024-08-04T09:51:18.354Z","dependency_job_id":null,"html_url":"https://github.com/iniva/action-repository-dispatch","commit_stats":{"total_commits":69,"total_committers":3,"mean_commits":23.0,"dds":"0.46376811594202894","last_synced_commit":"421d3998163923098e2323401b2de28c94dd135e"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/iniva/action-repository-dispatch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iniva%2Faction-repository-dispatch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iniva%2Faction-repository-dispatch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iniva%2Faction-repository-dispatch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iniva%2Faction-repository-dispatch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iniva","download_url":"https://codeload.github.com/iniva/action-repository-dispatch/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iniva%2Faction-repository-dispatch/sbom","scorecard":{"id":488866,"data":{"date":"2025-08-11","repo":{"name":"github.com/iniva/action-repository-dispatch","commit":"9996ee1871fc89252ccef1000071d26778644f2e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"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":"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":"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/17 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":"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/ci-dispatch.yml:1","Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Warn: no topLevel permission defined: .github/workflows/dependabot-updates.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":"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":"Pinned-Dependencies","score":1,"reason":"dependency not pinned by hash detected -- score normalized to 1","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/iniva/action-repository-dispatch/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/iniva/action-repository-dispatch/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/iniva/action-repository-dispatch/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:55: update your workflow using https://app.stepsecurity.io/secureworkflow/iniva/action-repository-dispatch/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:63: update your workflow using https://app.stepsecurity.io/secureworkflow/iniva/action-repository-dispatch/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:71: update your workflow using https://app.stepsecurity.io/secureworkflow/iniva/action-repository-dispatch/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:89: update your workflow using https://app.stepsecurity.io/secureworkflow/iniva/action-repository-dispatch/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:105: update your workflow using https://app.stepsecurity.io/secureworkflow/iniva/action-repository-dispatch/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:122: update your workflow using https://app.stepsecurity.io/secureworkflow/iniva/action-repository-dispatch/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/dependabot-updates.yml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/iniva/action-repository-dispatch/dependabot-updates.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/dependabot-updates.yml:65: update your workflow using https://app.stepsecurity.io/secureworkflow/iniva/action-repository-dispatch/dependabot-updates.yml/main?enable=pin","Info:   0 out of  11 GitHub-owned GitHubAction dependencies pinned","Info:   2 out of   2 npmCommand 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":"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":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":"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 20 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":"Vulnerabilities","score":0,"reason":"11 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-x4c5-c7rf-jjgv","Warn: Project is vulnerable to: GHSA-h5c3-5r3r-rr8q","Warn: Project is vulnerable to: GHSA-rmvr-2pp2-xj38","Warn: Project is vulnerable to: GHSA-xx4v-prfh-6cgc","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-c76h-2ccp-4975","Warn: Project is vulnerable to: GHSA-cxrh-j4jr-qwg3"],"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-19T18:32:32.370Z","repository_id":37015094,"created_at":"2025-08-19T18:32:32.370Z","updated_at":"2025-08-19T18:32:32.370Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32472396,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"last_error":"SSL_read: 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":["actions","workflow"],"created_at":"2025-03-15T22:17:01.816Z","updated_at":"2026-05-02T10:03:31.850Z","avatar_url":"https://github.com/iniva.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![CI](https://github.com/iniva/action-repository-dispatch/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/iniva/action-repository-dispatch/actions/workflows/ci.yml)\n\n# Repository Dispatch Action \u003c!-- omit in toc --\u003e\nSend `repository_dispatch` events to any repository with a validated JSON payload sourced from a string, a local file path, or a remote URL.\n\n## Contents \u003c!-- omit in toc --\u003e\n- [Features](#features)\n- [Quick Start](#quick-start)\n- [Inputs](#inputs)\n- [Payload Sources](#payload-sources)\n  - [String](#string)\n  - [Path](#path)\n  - [URL](#url)\n- [Personal Access Token (PAT) Scopes](#personal-access-token-pat-scopes)\n- [Validation \\\u0026 Safety](#validation--safety)\n- [Debugging](#debugging)\n- [Troubleshooting](#troubleshooting)\n- [Development](#development)\n\n## Features\n- Three payload modes: inline string, local file, remote URL\n- Strict JSON parse + object shape validation (rejects non-object roots)\n- Repository name validation (`owner/repo` format)\n- Clean error messages with optional debug stack output\n- Works with public or private target repositories\n- Native fetch (no external HTTP client dependency)\n\n## Quick Start\nMinimal example using an inline payload:\n```yaml\njobs:\n  dispatch:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: iniva/action-repository-dispatch@v2\n        with:\n          eventType: trigger_build\n          token: ${{ secrets.REPO_PAT }}\n          payload: '{\"requested_by\": \"${{ github.actor }}\"}'\n```\n\n## Inputs\n| Name               | Required      | Default      | Description                                     |\n| ------------------ | ------------- | ------------ | ----------------------------------------------- |\n| `eventType`        | Yes           | —            | Custom event type the receiver listens for.     |\n| `token`            | Yes           | —            | PAT used to authenticate and send the dispatch. |\n| `targetRepository` | No            | Current repo | Target in `owner/repo` form.                    |\n| `payloadType`      | No            | `string`     | One of: `string`, `path`, `url`.                |\n| `payload`          | Conditionally | `{}`         | Inline JSON string (when type is `string`).     |\n| `payloadPath`      | Conditionally | —            | Path to JSON file (when type is `path`).        |\n| `payloadUrl`       | Conditionally | —            | HTTPS URL returning JSON (when type is `url`).  |\n\n## Payload Sources\nExactly one source must be provided, determined by `payloadType` (defaults to `string`).\n\n### String\n```yaml\n- uses: iniva/action-repository-dispatch@v2\n  with:\n    eventType: test_dispatch\n    token: ${{ secrets.REPO_PAT }}\n    payload: '{\"requested_by\":\"${{ github.actor }}\",\"run_id\":${{ github.run_id }} }'\n```\n\n### Path\n```yaml\n- uses: iniva/action-repository-dispatch@v2\n  with:\n    eventType: test_dispatch\n    token: ${{ secrets.REPO_PAT }}\n    payloadType: path\n    payloadPath: test/files/valid.json\n```\n\n### URL\n```yaml\n- uses: iniva/action-repository-dispatch@v2\n  with:\n    eventType: test_dispatch\n    token: ${{ secrets.REPO_PAT }}\n    payloadType: url\n    payloadUrl: https://example.com/valid.json\n```\n\n## Personal Access Token (PAT) Scopes\n| Target Repo Visibility | Required Scope | Notes                               |\n| ---------------------- | -------------- | ----------------------------------- |\n| Public                 | `public_repo`  | Minimum for dispatching.            |\n| Private                | `repo`         | Token owner must have write access. |\n\n## Validation \u0026 Safety\n- Rejects invalid repository names (`owner/repo` enforced)\n- Ensures payload parses to a plain object (arrays / primitives rejected)\n- URL fetch: timeout + retry in utility wrapper (native fetch)\n- Clear error surfaces base message; enable debug for stack traces\n\n## Debugging\nEnable verbose internal logging by setting repository / org secret:\n```\nACTIONS_STEP_DEBUG=true\n```\nThen re-run the workflow. Additional diagnostic info will appear in the Action logs.\n\n## Troubleshooting\n| Symptom                                      | Likely Cause                       | Fix                                                                      |\n| -------------------------------------------- | ---------------------------------- | ------------------------------------------------------------------------ |\n| `Invalid repository name`                    | Missing slash or whitespace        | Provide `owner/repo` exactly.                                            |\n| `Failed to interpret JSON payload`           | Malformed JSON string              | Validate JSON with an online formatter.                                  |\n| `Failed to interpret JSON payload from file` | File not found or invalid JSON     | Check path \u0026 contents committed.                                         |\n| `Failed to interpret JSON payload from url`  | Non-200, redirect, or invalid JSON | Confirm URL returns 200 \u0026 JSON content-type.                             |\n| Dispatch succeeds but receiver ignores it    | Wrong `eventType`                  | Align `eventType` with receiver workflow `on: repository_dispatch` type. |\n\n## Development\nLocal build:\n```bash\npnpm install\npnpm run build\n```\nRun tests:\n```bash\npnpm test\n```\nLint \u0026 typecheck:\n```bash\npnpm run test:lint\npnpm run test:typecheck\n```\n\nThe bundled artifact is produced via `@vercel/ncc` from the compiled TypeScript in `dist/`.\n\n---\nMaintained with care. Contributions welcome.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finiva%2Faction-repository-dispatch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finiva%2Faction-repository-dispatch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finiva%2Faction-repository-dispatch/lists"}