{"id":28555919,"url":"https://github.com/roots/discourse-topic-github-release-action","last_synced_at":"2026-03-12T00:09:57.172Z","repository":{"id":139967160,"uuid":"469513382","full_name":"roots/discourse-topic-github-release-action","owner":"roots","description":"Post published GitHub releases from a repository to a Discourse instance.","archived":false,"fork":false,"pushed_at":"2025-10-20T00:31:20.000Z","size":246,"stargazers_count":5,"open_issues_count":2,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-10T21:31:22.870Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/roots.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},"funding":{"github":"roots"}},"created_at":"2022-03-13T22:42:42.000Z","updated_at":"2025-06-17T17:08:02.000Z","dependencies_parsed_at":"2024-02-22T01:23:44.069Z","dependency_job_id":"475bb5e2-9997-46e9-923d-56d9ea519311","html_url":"https://github.com/roots/discourse-topic-github-release-action","commit_stats":{"total_commits":5,"total_committers":3,"mean_commits":"1.6666666666666667","dds":0.4,"last_synced_commit":"c30dc233349b7c6f24f52fb1c659cc64f13b5474"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/roots/discourse-topic-github-release-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roots%2Fdiscourse-topic-github-release-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roots%2Fdiscourse-topic-github-release-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roots%2Fdiscourse-topic-github-release-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roots%2Fdiscourse-topic-github-release-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roots","download_url":"https://codeload.github.com/roots/discourse-topic-github-release-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roots%2Fdiscourse-topic-github-release-action/sbom","scorecard":{"id":784649,"data":{"date":"2025-08-11","repo":{"name":"github.com/roots/discourse-topic-github-release-action","commit":"59f347acb1eb6455bbc1ce3fcc05e8fa3a76846e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"checks":[{"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":"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":"Code-Review","score":1,"reason":"Found 1/6 approved changesets -- score normalized to 1","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":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/discourse.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":"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: third-party GitHubAction not pinned by hash: .github/workflows/discourse.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/roots/discourse-topic-github-release-action/discourse.yml/main?enable=pin","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":"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":"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":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 1 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":1,"reason":"9 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","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-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv"],"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-23T05:46:07.555Z","repository_id":139967160,"created_at":"2025-08-23T05:46:07.555Z","updated_at":"2025-08-23T05:46:07.555Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30408019,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T22:36:59.286Z","status":"ssl_error","status_checked_at":"2026-03-11T22:36:57.544Z","response_time":84,"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":[],"created_at":"2025-06-10T06:08:15.627Z","updated_at":"2026-03-12T00:09:57.160Z","avatar_url":"https://github.com/roots.png","language":"JavaScript","funding_links":["https://github.com/sponsors/roots"],"categories":[],"sub_categories":[],"readme":"# Discourse Topic GitHub Release Action\n\nThe `discourse-topic-github-release-action` is a JavaScript action that can post published GitHub releases from a repository to a Discourse instance.\n\nWe use this on our main projects to [automatically post releases to Roots Discourse](https://discourse.roots.io/tag/releases?order=created).\n\n## Example usage\n\n```yaml\nname: Post release topic on Discourse\n\non:\n  release:\n    types: [published]\n\njobs:\n  post:\n    runs-on: ubuntu-latest\n    steps:\n    - uses: roots/discourse-topic-github-release-action@main\n      with:\n        discourse-api-key: ${{ secrets.DISCOURSE_RELEASES_API_KEY }}\n        discourse-base-url: ${{ secrets.DISCOURSE_BASE_URL }}\n        github-token: ${{ github.token }}\n        discourse-category: 11\n        discourse-tags:\n          releases\n```\n\n## Username Mapping\n\nThe action automatically maps GitHub usernames to Discourse usernames by reading a `discourse.yml` file from your organization's `.github` repository.\n\n### Setting up username mapping\n\n1. Create a `.github` repository in your organization if it doesn't exist\n2. Add a `discourse.yml` file with the following format:\n\n```yaml\nusernames:\n  github-username: discourse-username\n  another-user: their-discourse-name\n```\n\nWhen a release is published, the action will:\n\n1. Detect the GitHub username of the person who published the release\n2. Look up their username in the mapping\n3. Use the mapped Discourse username when creating the topic\n\nFor backward compatibility, if `discourse-author-username` is provided, that value is used directly. Otherwise, the action attempts username mapping (when a GitHub token is available) and falls back to `system`.\n\n## Setup\n\n### `discourse-api-key`\n\n**Required** Discourse API key. Use a [GitHub secret](https://docs.github.com/en/actions/security-guides/encrypted-secrets) for this value.\n\n### `discourse-base-url`\n\n**Required** Discourse base URL. Use a [GitHub secret](https://docs.github.com/en/actions/security-guides/encrypted-secrets) for this value.\n\n### `discourse-author-username`\n\nUsername for creating the topic on Discourse.\n\n**Default**: `system` (if omitted, username mapping is attempted when a GitHub token is available)\n\n### `github-token`\n\n**Optional** GitHub token for fetching the `.github/discourse.yml` file. The action uses this input first, then `GITHUB_TOKEN` if available.\n\nThe token must be able to read `owner/.github/discourse.yml` (repository contents read access). If that file cannot be read, the action falls back to `system`.\n\n### `discourse-category`\n\nCategory ID used for creating the topic on Discourse.\n\n### `discourse-tags`\n\nTags applied to the topic when creating the topic on Discourse.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froots%2Fdiscourse-topic-github-release-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froots%2Fdiscourse-topic-github-release-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froots%2Fdiscourse-topic-github-release-action/lists"}