{"id":40611009,"url":"https://github.com/sidx1024/report-nyc-coverage-github-action","last_synced_at":"2026-01-21T05:10:42.400Z","repository":{"id":40353915,"uuid":"470493891","full_name":"sidx1024/report-nyc-coverage-github-action","owner":"sidx1024","description":"GitHub Action that posts the report in a comment on a GitHub Pull Request from coverage data generated by nyc (istanbul)","archived":false,"fork":false,"pushed_at":"2024-02-03T01:05:54.000Z","size":1309,"stargazers_count":21,"open_issues_count":5,"forks_count":11,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-28T11:29:15.571Z","etag":null,"topics":["coverage","coverage-report","cypress","javascript","nyc"],"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/sidx1024.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}},"created_at":"2022-03-16T08:28:57.000Z","updated_at":"2024-09-03T09:26:04.000Z","dependencies_parsed_at":"2024-06-19T06:14:54.489Z","dependency_job_id":"aa45fbed-c6a9-40b1-8932-87bdcc8df099","html_url":"https://github.com/sidx1024/report-nyc-coverage-github-action","commit_stats":{"total_commits":138,"total_committers":1,"mean_commits":138.0,"dds":0.0,"last_synced_commit":"873d5033d5a27e263ec68115ae1d378100cacff2"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/sidx1024/report-nyc-coverage-github-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidx1024%2Freport-nyc-coverage-github-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidx1024%2Freport-nyc-coverage-github-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidx1024%2Freport-nyc-coverage-github-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidx1024%2Freport-nyc-coverage-github-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sidx1024","download_url":"https://codeload.github.com/sidx1024/report-nyc-coverage-github-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidx1024%2Freport-nyc-coverage-github-action/sbom","scorecard":{"id":822709,"data":{"date":"2025-08-11","repo":{"name":"github.com/sidx1024/report-nyc-coverage-github-action","commit":"0497921dcf4795ad835885dfdae0ebc71c3f702f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"name":"Code-Review","score":0,"reason":"Found 1/13 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":"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":"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":"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":"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/base-update.yml:1","Warn: no topLevel permission defined: .github/workflows/default-branch.yml:1","Warn: no topLevel permission defined: .github/workflows/main.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":"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":"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/base-update.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/sidx1024/report-nyc-coverage-github-action/base-update.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/base-update.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/sidx1024/report-nyc-coverage-github-action/base-update.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/base-update.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/sidx1024/report-nyc-coverage-github-action/base-update.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/base-update.yml:44: update your workflow using https://app.stepsecurity.io/secureworkflow/sidx1024/report-nyc-coverage-github-action/base-update.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/default-branch.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/sidx1024/report-nyc-coverage-github-action/default-branch.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/default-branch.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/sidx1024/report-nyc-coverage-github-action/default-branch.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/sidx1024/report-nyc-coverage-github-action/main.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/sidx1024/report-nyc-coverage-github-action/main.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/sidx1024/report-nyc-coverage-github-action/main.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/main.yml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/sidx1024/report-nyc-coverage-github-action/main.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/main.yml:57: update your workflow using https://app.stepsecurity.io/secureworkflow/sidx1024/report-nyc-coverage-github-action/main.yml/main?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/default-branch.yml:21","Warn: npmCommand not pinned by hash: .github/workflows/main.yml:19","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   5 third-party GitHubAction dependencies pinned","Info:   0 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":"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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 22 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":"13 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-ghr5-ch3p-vcr6","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-rxrc-rgv4-jpvx","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q"],"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-23T15:58:46.547Z","repository_id":40353915,"created_at":"2025-08-23T15:58:46.548Z","updated_at":"2025-08-23T15:58:46.548Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28627390,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T04:47:28.174Z","status":"ssl_error","status_checked_at":"2026-01-21T04:47:22.943Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["coverage","coverage-report","cypress","javascript","nyc"],"created_at":"2026-01-21T05:10:42.324Z","updated_at":"2026-01-21T05:10:42.395Z","avatar_url":"https://github.com/sidx1024.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- start title --\u003e\n\n# GitHub Action: Report NYC coverage\n\n\u003c!-- end title --\u003e\n\u003c!-- start description --\u003e\n\nGitHub Action that posts the report in a comment on a GitHub Pull Request from coverage data generated by nyc (istanbul).\n\n\u003c!-- end description --\u003e\n\u003c!-- start contents --\u003e\n\u003c!-- end contents --\u003e\n\n[See sample comment](https://github.com/sidx1024/report-nyc-coverage-github-action/pull/10#issuecomment-1074885726)\n\u003cimg src=\"docs/sample-report.png\" alt=\"Sample comment image\"\u003e\n\n## Setup\nPlease refer to the folder [.github/workflows](https://github.com/sidx1024/report-nyc-coverage-github-action/tree/main/.github/workflows) to see how this action is used in this repo itself. Use it as a reference for setting it up for your repo.\n\n## Typical Usage\n\n```yaml\non: [pull_request]\n\njobs:\n  my_app_job:\n    runs-on: ubuntu-latest\n    name: My App\n    steps:\n      - name: Checkout\n        uses: actions/checkout@v3\n        with:\n          ref: ${{ github.event.pull_request.head.sha }}\n          fetch-depth: 1000 # Set this according to the size of your git history\n\n      - name: Fetch base\n        run: git fetch origin ${{ github.event.pull_request.base.ref }} --depth=1000\n\n      - name: Run tests\n        run: npm run test\n\n      - name: Generate NYC report\n        run: |\n          npx nyc report \\\n            --reporter json-summary \\\n            --report-dir nyc-coverage-report \\\n            --exclude-after-remap false\n\n      - name: Report NYC coverage\n        uses: sidx1024/report-nyc-coverage-github-action@v1.2.7\n        with:\n          # Path to coverage file generated by \"nyc report\".\n          coverage_file: \"nyc-coverage-report/coverage-summary.json\"\n```\n\n## Usage\n\n\u003c!-- start usage --\u003e\n\n```yaml\n- uses: sidx1024/report-nyc-coverage-github-action@v1.2.7\n  with:\n    # Path to coverage file generated by \"nyc report\".\n    # Default: coverage-summary.json\n    coverage_file: \"\"\n\n    # Path to coverage file generated by \"nyc report\" for the base branch (for\n    # comparison)\n    # Default: .base_nyc_output/coverage-summary.json\n    base_coverage_file: \"\"\n\n    # Template file to be used for GitHub PR comment. Markdown and Svelte are\n    # supported.\n    # Default: comment-template.md\n    comment_template_file: \"\"\n\n    # \"replace\" or \"new\"\n    # Default: replace\n    comment_mode: \"\"\n\n    # An alternative GitHub token, other than the default provided by GitHub Actions\n    # runner. Optional.\n    # Default: ${{ github.token }}\n    github_token: \"\"\n\n    # Absolute path to the source files. The path will be trimmed from the coverage\n    # data. Optional. Default is the github workspace directory with a trailing slash.\n    # Default: ${{ format('{0}/', github.workspace) }}\n    sources_base_path: \"\"\n\n    # Specify the order for coverage types to be included in the output table. (S:\n    # statements, B: branches, F: functions, L: lines). Missing types will be\n    # excluded.\n    # Default: SBFL\n    files_coverage_table_output_type_order: \"\"\n```\n\n\u003c!-- end usage --\u003e\n\u003c!-- start inputs --\u003e\n\n| **Input**                                    | **Description**                                                                                                                                                | **Default**                               | **Required** |\n| -------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------- | ------------ |\n| **`coverage_file`**                          | Path to coverage file generated by \"nyc report\".                                                                                                               | `coverage-summary.json`                   | **true**     |\n| **`base_coverage_file`**                     | Path to coverage file generated by \"nyc report\" for the base branch (for comparison)                                                                           | `.base_nyc_output/coverage-summary.json`  | **true**     |\n| **`comment_template_file`**                  | Template file to be used for GitHub PR comment. Markdown and Svelte are supported.                                                                             | `comment-template.md`                     | **false**    |\n| **`comment_mode`**                           | \"replace\" or \"new\"                                                                                                                                             | `replace`                                 | **false**    |\n| **`github_token`**                           | An alternative GitHub token, other than the default provided by GitHub Actions runner. Optional.                                                               | `${{ github.token }}`                     | **false**    |\n| **`sources_base_path`**                      | Absolute path to the source files. The path will be trimmed from the coverage data. Optional. Default is the github workspace directory with a trailing slash. | `${{ format('{0}/', github.workspace) }}` | **false**    |\n| **`files_coverage_table_output_type_order`** | Specify the order for coverage types to be included in the output table. (S: statements, B: branches, F: functions, L: lines). Missing types will be excluded. | `SBFL`                                    | **false**    |\n\n\u003c!-- end inputs --\u003e\n\u003c!-- start outputs --\u003e\n\n| \\***\\*Output\\*\\***                           | \\***\\*Description\\*\\***                                                                                    | \\***\\*Default\\*\\*** | \\***\\*Required\\*\\*** |\n| -------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ------------------- | -------------------- |\n| `total_lines_coverage_percent`               | Total lines coverage percent (XX.XX%) with level indicator                                                 | undefined           | undefined            |\n| `total_branches_coverage_percent`            | Total branches coverage percent (XX.XX%) with level indicator                                              | undefined           | undefined            |\n| `total_statements_coverage_percent`          | Total statements coverage percent (XX.XX%) with level indicator                                            | undefined           | undefined            |\n| `total_functions_coverage_percent`           | Total functions coverage percent (XX.XX%) with level indicator                                             | undefined           | undefined            |\n| `total_lines_coverage_percent_raw`           | Total lines coverage percent (XX.XX) without percent and level indicator                                   | undefined           | undefined            |\n| `total_branches_coverage_percent_raw`        | Total branches coverage percent (XX.XX) without percent and level indicator                                | undefined           | undefined            |\n| `total_statements_coverage_percent_raw`      | Total statements coverage percent (XX.XX) without percent and level indicator                              | undefined           | undefined            |\n| `total_functions_coverage_percent_raw`       | Total functions coverage percent (XX.XX) without percent and level indicator                               | undefined           | undefined            |\n| `base_total_lines_coverage_percent`          | Base total lines coverage percent (XX.XX%) with level indicator                                            | undefined           | undefined            |\n| `base_total_branches_coverage_percent`       | Base total branches coverage percent (XX.XX%) with level indicator                                         | undefined           | undefined            |\n| `base_total_statements_coverage_percent`     | Base total statements coverage percent (XX.XX%) with level indicator                                       | undefined           | undefined            |\n| `base_total_functions_coverage_percent`      | Base total functions coverage percent (XX.XX%) with level indicator                                        | undefined           | undefined            |\n| `total_lines_coverage_percent_diff`          | Total lines coverage percent diff (+XX.XX%)                                                                | undefined           | undefined            |\n| `total_statements_coverage_percent_diff`     | Total branches coverage percent diff (+XX.XX%)                                                             | undefined           | undefined            |\n| `total_functions_coverage_percent_diff`      | Total statements coverage percent diff (+XX.XX%)                                                           | undefined           | undefined            |\n| `total_branches_coverage_percent_diff`       | Total functions coverage percent diff (+XX.XX%)                                                            | undefined           | undefined            |\n| `total_lines_coverage_percent_diff_raw`      | Total lines coverage percent diff (-XX.XX) without percent sign                                            | undefined           | undefined            |\n| `total_statements_coverage_percent_diff_raw` | Total branches coverage percent diff (-XX.XX) without percent sign                                         | undefined           | undefined            |\n| `total_functions_coverage_percent_diff_raw`  | Total statements coverage percent diff (-XX.XX) without percent sign                                       | undefined           | undefined            |\n| `total_branches_coverage_percent_diff_raw`   | Total functions coverage percent diff (-XX.XX) without percent sign                                        | undefined           | undefined            |\n| `files_coverage_table`                       | HTML table content containing the file path and corresponding coverage percent for all files               | undefined           | undefined            |\n| `changed_files_coverage_table`               | HTML table content containing the file path and corresponding coverage percent for files changed in the PR | undefined           | undefined            |\n| `comment_body`                               | The comment body in HTML format                                                                            | undefined           | undefined            |\n| `commit_sha`                                 | Last commit SHA (commit due to which this action was executed)                                             | undefined           | undefined            |\n| `short_commit_sha`                           | Last commit SHA in shorter format (6ef01b)                                                                 | undefined           | undefined            |\n| `commit_link`                                | Relative link for the last commit                                                                          | undefined           | undefined            |\n| `base_commit_sha`                            | Base commit SHA                                                                                            | undefined           | undefined            |\n| `base_short_commit_sha`                      | Base commit SHA in shorter format (bca317)                                                                 | undefined           | undefined            |\n| `base_commit_link`                           | Relative link for the base commit                                                                          | undefined           | undefined            |\n| `base_ref`                                   | Base branch name                                                                                           | undefined           | undefined            |\n\n\u003c!-- end outputs --\u003e\n\u003c!-- start [.github/ghdocs/examples/] --\u003e\n\u003c!-- end [.github/ghdocs/examples/] --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsidx1024%2Freport-nyc-coverage-github-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsidx1024%2Freport-nyc-coverage-github-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsidx1024%2Freport-nyc-coverage-github-action/lists"}