{"id":15471393,"url":"https://github.com/sobolevn/restrict-cursing-action","last_synced_at":"2025-11-17T13:40:43.246Z","repository":{"id":47957754,"uuid":"213445822","full_name":"sobolevn/restrict-cursing-action","owner":"sobolevn","description":"Github Action to prevent cursing and bad language in issues and pull requests","archived":false,"fork":false,"pushed_at":"2024-02-12T16:48:04.000Z","size":894,"stargazers_count":25,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-10T02:32:28.742Z","etag":null,"topics":["abusive-language","cursing","friendly","github","github-action","github-actions","profanity-detection"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/restrict-cursing-action","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/sobolevn.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":{"open_collective":"wemake-python-styleguide","github":"wemake-services","custom":"https://boosty.to/sobolevn"}},"created_at":"2019-10-07T17:31:19.000Z","updated_at":"2025-08-12T09:01:24.000Z","dependencies_parsed_at":"2024-10-23T05:48:03.315Z","dependency_job_id":"e740333a-86ea-4fd8-8c09-d0549654ddf8","html_url":"https://github.com/sobolevn/restrict-cursing-action","commit_stats":{"total_commits":77,"total_committers":3,"mean_commits":"25.666666666666668","dds":0.4675324675324676,"last_synced_commit":"6bb37696a6c50560a216d9d6ea88700d923274f8"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":"actions/typescript-action","purl":"pkg:github/sobolevn/restrict-cursing-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sobolevn%2Frestrict-cursing-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sobolevn%2Frestrict-cursing-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sobolevn%2Frestrict-cursing-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sobolevn%2Frestrict-cursing-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sobolevn","download_url":"https://codeload.github.com/sobolevn/restrict-cursing-action/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sobolevn%2Frestrict-cursing-action/sbom","scorecard":{"id":835449,"data":{"date":"2025-08-11","repo":{"name":"github.com/sobolevn/restrict-cursing-action","commit":"6bb37696a6c50560a216d9d6ea88700d923274f8"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/1 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":"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":"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/comments.yml:1","Warn: no topLevel permission defined: .github/workflows/test.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":"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":"Pinned-Dependencies","score":2,"reason":"dependency not pinned by hash detected -- score normalized to 2","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/comments.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/sobolevn/restrict-cursing-action/comments.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/sobolevn/restrict-cursing-action/test.yml/master?enable=pin","Warn: containerImage not pinned by hash: Dockerfile:12: pin your Docker image by updating node:10-alpine to node:10-alpine@sha256:dc98dac24efd4254f75976c40bce46944697a110d06ce7fa47e7268470cf2e28","Warn: npmCommand not pinned by hash: Dockerfile:19","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 containerImage dependencies pinned","Info:   1 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":"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":"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":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch '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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 29 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":"20 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-7r3h-m5j6-3q42","Warn: Project is vulnerable to: GHSA-rmvr-2pp2-xj38","Warn: Project is vulnerable to: GHSA-xx4v-prfh-6cgc","Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7"],"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-23T18:54:18.521Z","repository_id":47957754,"created_at":"2025-08-23T18:54:18.521Z","updated_at":"2025-08-23T18:54:18.521Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":284893574,"owners_count":27080531,"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-11-17T02:00:06.431Z","response_time":55,"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":["abusive-language","cursing","friendly","github","github-action","github-actions","profanity-detection"],"created_at":"2024-10-02T02:18:49.070Z","updated_at":"2025-11-17T13:40:43.226Z","avatar_url":"https://github.com/sobolevn.png","language":"JavaScript","funding_links":["https://opencollective.com/wemake-python-styleguide","https://github.com/sponsors/wemake-services","https://boosty.to/sobolevn"],"categories":[],"sub_categories":[],"readme":"# Restrict Cursing Action\n\n[![wemake.services](https://img.shields.io/badge/%20-wemake.services-green.svg?label=%20\u0026logo=data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAABGdBTUEAALGPC%2FxhBQAAAAFzUkdCAK7OHOkAAAAbUExURQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP%2F%2F%2F5TvxDIAAAAIdFJOUwAjRA8xXANAL%2Bv0SAAAADNJREFUGNNjYCAIOJjRBdBFWMkVQeGzcHAwksJnAPPZGOGAASzPzAEHEGVsLExQwE7YswCb7AFZSF3bbAAAAABJRU5ErkJggg%3D%3D)](https://wemake.services)\n[![Github Marketplace](https://img.shields.io/badge/github-marketplace-brightgreen?logo=github)](https://github.com/marketplace/actions/restrict-cursing-action)\n[![Github Action](https://github.com/sobolevn/restrict-cursing-action/workflows/test/badge.svg)](https://github.com/sobolevn/restrict-cursing-action/actions)\n[![wemake-python-styleguide](https://img.shields.io/badge/style-wemake-000000.svg)](https://github.com/wemake-services/wemake-frontend-styleguide)\n\nThis Github Action is used to automatically moderate comments with bad language.\n\nWhat it does? It turns offensive comments into [`I am so sorry`](https://github.com/sobolevn/restrict-cursing-action/issues/3) comments:\n\n[![Demo](https://github.com/sobolevn/restrict-cursing-action/blob/master/assets/demo.png?raw=true)](https://github.com/sobolevn/restrict-cursing-action)\n\nSupports:\n\n- Issues and pull requests\n- Issue and pull request comments\n\nWe use [`cuss`](https://github.com/words/cuss) as the bad words database.\n\n\n## Usage\n\nPut this into your [workflow](https://help.github.com/en/articles/configuring-a-workflow):\n\n```yaml\nname: comments\n\non:\n  issues:\n    types: [opened, edited]\n  issue_comment:\n    types: [created, edited]\n  pull_request:\n    types: [created, edited]\n\njobs:\n  comments:\n\n    runs-on: ubuntu-latest\n\n    steps:\n    - uses: sobolevn/restrict-cursing-action@latest\n      env:\n        # We need this token to edit the comment text:\n        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n```\n\nYou can also configure the final text:\n\n```yaml\n    steps:\n    - uses: sobolevn/restrict-cursing-action@latest\n      with:\n        # Also supports emoji:\n        text: \"Your custom text :+1:\"\n      env:\n        # We need this token to edit the comment text:\n        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n```\n\nSee the [actions tab](https://github.com/actions/javascript-action/actions) for runs of this action! :rocket:\n\n\n## Development\n\nInstall the dependencies:\n\n```bash\n$ npm install\n```\n\nBuild the typescript:\n\n```bash\n$ npm run build\n```\n\nRun the tests :heavy_check_mark::\n\n```bash\n$ npm test\n```\n\nSee the [toolkit documentation](https://github.com/actions/toolkit/blob/master/README.md#packages) for the various packages.\n\n\n## License\n\n[MIT](https://github.com/sobolevn/restrict-cursing-action/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsobolevn%2Frestrict-cursing-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsobolevn%2Frestrict-cursing-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsobolevn%2Frestrict-cursing-action/lists"}