{"id":46907063,"url":"https://github.com/jackieo5023/flow-coverage-compare","last_synced_at":"2026-03-11T01:23:14.592Z","repository":{"id":54875444,"uuid":"320722868","full_name":"jackieo5023/flow-coverage-compare","owner":"jackieo5023","description":"Github action to compare flow coverage on a PR to the base branch.","archived":false,"fork":false,"pushed_at":"2021-01-23T08:10:01.000Z","size":145,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-23T11:09:52.453Z","etag":null,"topics":["coverage","flow","flowtype"],"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/jackieo5023.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":"2020-12-12T01:29:15.000Z","updated_at":"2021-08-09T06:14:53.000Z","dependencies_parsed_at":"2023-01-08T22:33:38.190Z","dependency_job_id":null,"html_url":"https://github.com/jackieo5023/flow-coverage-compare","commit_stats":{"total_commits":7,"total_committers":1,"mean_commits":7.0,"dds":0.0,"last_synced_commit":"2cb8b4626709cff2925bd03cc3c54c1d297e266b"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/jackieo5023/flow-coverage-compare","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackieo5023%2Fflow-coverage-compare","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackieo5023%2Fflow-coverage-compare/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackieo5023%2Fflow-coverage-compare/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackieo5023%2Fflow-coverage-compare/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jackieo5023","download_url":"https://codeload.github.com/jackieo5023/flow-coverage-compare/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackieo5023%2Fflow-coverage-compare/sbom","scorecard":{"id":500636,"data":{"date":"2025-08-11","repo":{"name":"github.com/jackieo5023/flow-coverage-compare","commit":"2cb8b4626709cff2925bd03cc3c54c1d297e266b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":"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":"Code-Review","score":0,"reason":"Found 0/7 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":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"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":"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 3 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":5,"reason":"5 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-7r3h-m5j6-3q42","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-r683-j2x4-v87g"],"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-19T21:45:26.956Z","repository_id":54875444,"created_at":"2025-08-19T21:45:26.956Z","updated_at":"2025-08-19T21:45:26.956Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30365804,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T21:41:54.280Z","status":"ssl_error","status_checked_at":"2026-03-10T21:40:59.357Z","response_time":106,"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","flow","flowtype"],"created_at":"2026-03-11T01:23:13.977Z","updated_at":"2026-03-11T01:23:14.580Z","avatar_url":"https://github.com/jackieo5023.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flow Coverage Compare\n\nGithub action to compare flow coverage on a PR to the base branch.\n\nRunning this action will create a comment like this on your pull request:\n![Example of action](assets/example.png)\n\n## Usage\n\nYou'll want to add this job to one of your [workflow files](https://docs.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow). Below are examples of sample workflow files using this action. Additionally, in order to use this action, you'll want to ensure you can run flow like `yarn run flow` or `npm run flow` in your repository.\n\n### Action inputs\n\nThe possible inputs for this action are:\n\n| Parameter         | Description                                                                                                                                       | Default        |\n| ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | -------------- |\n| `github-token`    | The GitHub authentication token                                                                                                                   | `GITHUB_TOKEN` |\n| `package-manager` | The package manager your repo uses - either `yarn` or `npm`                                                                                       | `yarn`         |\n| `path`            | The path to your `.flowconfig` (which should be the same as the path to your `package.json`)                                                      |                |\n| `pattern`         | The regex pattern used to determine which files to run flow on                                                                                    | `^.*.js$`      |\n| `threshold`       | The number of percentage points _down_ where this job will fail - not specifying this input will cause the job to always pass if run successfully |                |\n\n### Examples\n\n**\"Copy paste\" config**\n\nThis config uses all the defaults, specifying nothing - it assumes you are using yarn, want to check all `.js` files, always want the check to pass, and just make a comment on your PR with the flow comparison.\n\nNote: The steps before `Run check` in this workflow are important! They checkout your head branch from your PR, and the base branch it wants to merge into.\n\n```yml\nname: Flow Coverage Compare\n\non: [pull_request]\n\njobs:\n  check:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout head branch\n        uses: actions/checkout@v2\n        with:\n          path: head\n      - name: Checkout base branch\n        uses: actions/checkout@v2\n        with:\n          path: base\n          ref: ${{ github.base_ref }}\n      - name: Install dependencies\n        run: |\n          cd head\n          yarn\n          cd ../base\n          yarn\n      - name: Run check\n        uses: jackieo5023/flow-coverage-compare@v0.1\n```\n\n**Customizable config**\n\nThis config specifies 4 things:\n\n- You are using `npm`\n- Your flow config and `package.json` is under the path `client/`\n- You want to check _only_ the files under the `client/src` directory, ending in `.js`\n- You want to fail the job if any file checked has a decline in flow coverage greater than or equal to 10%\n\nNote: You still need to include the steps before `Run check` with this workflow!\n\n```yml\nname: Flow Coverage Compare\n\non: [pull_request]\n\njobs:\n  check:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout head branch\n        uses: actions/checkout@v2\n        with:\n          path: head\n      - name: Checkout base branch\n        uses: actions/checkout@v2\n        with:\n          path: base\n          ref: ${{ github.base_ref }}\n      - name: Install dependencies\n        run: |\n          cd head/client\n          npm install\n          cd ../../base/client\n          npm install\n      - name: Run check\n        uses: jackieo5023/flow-coverage-compare@v0.1\n        with:\n          package-manager: npm\n          path: client/\n          pattern: ^client/src\\/.*.js$\n          threshold: 10\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjackieo5023%2Fflow-coverage-compare","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjackieo5023%2Fflow-coverage-compare","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjackieo5023%2Fflow-coverage-compare/lists"}