{"id":38791608,"url":"https://github.com/jgillick/test-coverage-annotations","last_synced_at":"2026-01-17T12:38:47.994Z","repository":{"id":64027192,"uuid":"567926878","full_name":"jgillick/test-coverage-annotations","owner":"jgillick","description":"A github action that add test coverage annotations to your files.","archived":false,"fork":false,"pushed_at":"2022-12-05T22:23:46.000Z","size":313,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-13T01:19:43.605Z","etag":null,"topics":["annotations","istanbul","jest","test-coverage","unit-testing"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/jgillick.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}},"created_at":"2022-11-18T23:15:26.000Z","updated_at":"2023-10-05T23:43:53.000Z","dependencies_parsed_at":"2023-01-05T05:03:10.881Z","dependency_job_id":null,"html_url":"https://github.com/jgillick/test-coverage-annotations","commit_stats":{"total_commits":47,"total_committers":3,"mean_commits":"15.666666666666666","dds":0.06382978723404253,"last_synced_commit":"74fb1a9d4dbe8048001f4334c60095f65060c62a"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/jgillick/test-coverage-annotations","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgillick%2Ftest-coverage-annotations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgillick%2Ftest-coverage-annotations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgillick%2Ftest-coverage-annotations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgillick%2Ftest-coverage-annotations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jgillick","download_url":"https://codeload.github.com/jgillick/test-coverage-annotations/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgillick%2Ftest-coverage-annotations/sbom","scorecard":{"id":518071,"data":{"date":"2025-08-11","repo":{"name":"github.com/jgillick/test-coverage-annotations","commit":"74fb1a9d4dbe8048001f4334c60095f65060c62a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"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/test.yml:1","Warn: no topLevel permission defined: .github/workflows/usage-count.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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":0,"reason":"Found 0/30 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":"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.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/jgillick/test-coverage-annotations/test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/usage-count.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/jgillick/test-coverage-annotations/usage-count.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/usage-count.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/jgillick/test-coverage-annotations/usage-count.yml/main?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","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":"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":"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":"Vulnerabilities","score":0,"reason":"11 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-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw"],"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-20T02:17:40.536Z","repository_id":64027192,"created_at":"2025-08-20T02:17:40.536Z","updated_at":"2025-08-20T02:17:40.536Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28508488,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T11:50:55.898Z","status":"ssl_error","status_checked_at":"2026-01-17T11:50:55.569Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["annotations","istanbul","jest","test-coverage","unit-testing"],"created_at":"2026-01-17T12:38:47.908Z","updated_at":"2026-01-17T12:38:47.977Z","avatar_url":"https://github.com/jgillick.png","language":"TypeScript","readme":"# Test Coverage Annotations - Github Action\n\n[![Count of Action Users](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/jgillick/test-coverage-annotations/main/action-name.json)](https://github.com/search?q=jgillick%2Ftest-coverage-annotations+path%3A.github%2Fworkflows+language%3AYAML\u0026type=code)\n\nA github action that add test coverage annotations to your files using an [istanbul-style coverage JSON file](https://github.com/gotwarlost/istanbul/blob/master/coverage.json.md) (jest compatible).\n\n\u003cimg src=\"./screenshot.png\" style=\"max-width: 600px;\" /\u003e\n\nRequires the following permission:\n\n- `checks: write`\n\n```yaml\n- name: Coverage annotations\n  uses: jgillick/test-coverage-annotations@v1\n  with:\n    access-token: ${{ secrets.GITHUB_TOKEN }}\n    coverage: ./coverage/coverage-final.json\n    only-changed-files: true\n```\n\n## Input parameters\n\n- `access-token`: Your github access token. Needed to add annotations.\n- `coverage`: Path to the test coverage JSON file.\n- `coverage-working-directory`: The path of the directory that the coverage was generated in. Defaults to pwd of the run. (see below for more details)\n- `only-changed-files`: Only annotate changed files in the PR.\n\n## Full Example\n\nAssuming you use jest, here's how you can use this action:\n\n```yaml\njobs:\n  test:\n    runs-on: ubuntu-latest\n    permissions:\n      checks: write\n    steps:\n      # First generate coverage\n      - name: Get coverage\n        run: yarn jest --coverage\n\n      # Generate annotations\n      - name: Coverage annotations\n        uses: jgillick/test-coverage-annotations@v1\n        with:\n          access-token: ${{ secrets.GITHUB_TOKEN }}\n          coverage: coverage/coverage-final.json\n          only-changed-files: true\n```\n\n## Coverage Working Directory\n\n**This is important.** The coverage JSON file will contain the _full path_ to each file in the report. This includes a path before your repository. For example: `/home/app/my_repo/file/test.ts`.\nIn order to apply annotations to files correctly, we only need the path starting at the repo directory and need to strip the prefix `/home/app/my_repo/`.\n\nBy default, this action will use the current working directory of the run.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjgillick%2Ftest-coverage-annotations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjgillick%2Ftest-coverage-annotations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjgillick%2Ftest-coverage-annotations/lists"}