{"id":13703827,"url":"https://github.com/jakebailey/pyright-action","last_synced_at":"2026-02-16T01:11:05.261Z","repository":{"id":43145724,"uuid":"361906620","full_name":"jakebailey/pyright-action","owner":"jakebailey","description":"GitHub Action for pyright","archived":false,"fork":false,"pushed_at":"2025-11-07T11:48:58.000Z","size":6616,"stargazers_count":96,"open_issues_count":12,"forks_count":15,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-11-07T13:21:01.886Z","etag":null,"topics":[],"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/jakebailey.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-04-26T22:07:32.000Z","updated_at":"2025-10-31T17:02:41.000Z","dependencies_parsed_at":"2023-09-21T18:04:07.247Z","dependency_job_id":"73529e10-6b98-40e6-8942-d9ce402c3816","html_url":"https://github.com/jakebailey/pyright-action","commit_stats":{"total_commits":288,"total_committers":3,"mean_commits":96.0,"dds":0.06597222222222221,"last_synced_commit":"fb32d81e1511e730ab635d410d763df5df4e3577"},"previous_names":[],"tags_count":36,"template":false,"template_full_name":null,"purl":"pkg:github/jakebailey/pyright-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakebailey%2Fpyright-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakebailey%2Fpyright-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakebailey%2Fpyright-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakebailey%2Fpyright-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jakebailey","download_url":"https://codeload.github.com/jakebailey/pyright-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakebailey%2Fpyright-action/sbom","scorecard":{"id":208454,"data":{"date":"2025-08-11","repo":{"name":"github.com/jakebailey/pyright-action","commit":"fa0d678573efdb6dd916b93d51fd6e7a3499217e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 1 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":"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":"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":"Pinned-Dependencies","score":6,"reason":"dependency not pinned by hash detected -- score normalized to 6","details":["Warn: pipCommand not pinned by hash: .github/workflows/ci.yml:87","Info:   7 out of   7 GitHub-owned GitHubAction dependencies pinned","Info:   1 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   1 pipCommand 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":"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/23 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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 7 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":3,"reason":"7 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-xffm-g5w8-qvg7","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-x574-m823-4x7w","Warn: Project is vulnerable to: GHSA-4r4m-qw57-chr8","Warn: Project is vulnerable to: GHSA-xcj6-pq6g-qj4x","Warn: Project is vulnerable to: GHSA-356w-63v5-8wf4","Warn: Project is vulnerable to: GHSA-859w-5945-r5v3"],"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-17T00:16:27.734Z","repository_id":43145724,"created_at":"2025-08-17T00:16:27.734Z","updated_at":"2025-08-17T00:16:27.734Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":284122919,"owners_count":26951149,"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-12T02:00:06.336Z","response_time":59,"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":[],"created_at":"2024-08-02T21:01:00.533Z","updated_at":"2026-02-16T01:11:05.256Z","avatar_url":"https://github.com/jakebailey.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# pyright-action\n\n[![ci](https://github.com/jakebailey/pyright-action/actions/workflows/ci.yml/badge.svg)](https://github.com/jakebailey/pyright-action/actions/workflows/ci.yml)\n[![codecov](https://codecov.io/gh/jakebailey/pyright-action/branch/main/graph/badge.svg?token=5OMEFS2LQZ)](https://codecov.io/gh/jakebailey/pyright-action)\n\nGitHub action for [pyright](https://github.com/microsoft/pyright). Featuring:\n\n- PR/commit annotations for errors/warnings.\n- Super fast startup, via:\n  - Download caching.\n  - No dependency on `setup-node`.\n\n```yml\n- uses: jakebailey/pyright-action@v3\n  with:\n    version: 1.1.311 # Optional (change me!)\n```\n\n## Options\n\n```yml\ninputs:\n  # Options for pyright-action\n  version:\n    description: 'Version of pyright to run, or \"PATH\" to use pyright from $PATH. If neither version nor pylance-version are specified, the latest version will be used.'\n    required: false\n  pylance-version:\n    description: 'Version of pylance whose pyright version should be run. Can be latest-release, latest-prerelease, or a specific pylance version. Ignored if version option is specified.'\n    required: false\n  working-directory:\n    description: 'Directory to run pyright in. If not specified, the repo root will be used.'\n    required: false\n  annotate:\n    description: 'A comma separated list of check annotations to emit. May be \"none\"/\"false\", \"errors\", \"warnings\", or \"all\"/\"true\" (shorthand for \"errors, warnings\").'\n    required: false\n    default: 'all'\n\n  # Shorthand for pyright flags\n  create-stub:\n    description: 'Create type stub file(s) for import. Note: using this option disables commenting.'\n    required: false\n  dependencies:\n    description: 'Emit import dependency information. Note: using this option disables commenting.'\n    required: false\n  ignore-external:\n    description: 'Ignore external imports for verify-types.'\n    required: false\n  level:\n    description: 'Minimum diagnostic level (error or warning)'\n    required: false\n  project:\n    description: 'Use the configuration file at this location.'\n    required: false\n  python-platform:\n    description: 'Analyze for a specific platform (Darwin, Linux, Windows).'\n    required: false\n  python-path:\n    description: 'Path to the Python interpreter.'\n    required: false\n  python-version:\n    description: 'Analyze for a specific version (3.3, 3.4, etc.).'\n    required: false\n  skip-unannotated:\n    description: 'Skip analysis of functions with no type annotations.'\n    required: false\n  stats:\n    description: 'Print detailed performance stats. Note: using this option disables commenting.'\n    required: false\n  typeshed-path:\n    description: 'Use typeshed type stubs at this location.'\n    required: false\n  venv-path:\n    description: 'Directory that contains virtual environments.'\n    required: false\n  verbose:\n    description: 'Emit verbose diagnostics. Note: using this option disables commenting.'\n    required: false\n  verify-types:\n    description: 'Package name to run the type verifier on; must be an *installed* library. Any score under 100% will fail the build. Using this option disables commenting.'\n    required: false\n  warnings:\n    description: 'Use exit code of 1 if warnings are reported.'\n    required: false\n    default: 'false'\n\n  # Extra arguments (if what you want isn't listed above)\n  extra-args:\n    description: 'Extra arguments; can be used to specify specific files to check.'\n    required: false\n\n  # Removed in pyright 1.1.303\n  lib:\n    description: 'Use library code to infer types when stubs are missing.'\n    required: false\n    default: 'false'\n\n  # Deprecated\n  no-comments:\n    description: 'Disable issue/commit comments.'\n    required: false\n    default: 'false'\n    deprecationMessage: 'Use \"annotate\" instead.'\n```\n\n## Use with a virtualenv\n\nThe easiest way to use a virtualenv with this action is to \"activate\" the\nenvironment by adding its bin to `$PATH`, then allowing `pyright` to find it\nthere.\n\n```yml\n- uses: actions/checkout@v6\n- uses: actions/setup-python@v6\n  with:\n    cache: 'pip'\n\n- run: |\n    python -m venv .venv\n    source .venv/bin/activate\n    pip install -r requirements.txt\n\n- run: echo \"$PWD/.venv/bin\" \u003e\u003e $GITHUB_PATH\n\n- uses: jakebailey/pyright-action@v3\n```\n\n## Use with poetry\n\nSimilarly to a virtualenv, the easiest way to get it working is to ensure that\npoetry's python binary is on `$PATH`:\n\n```yml\n- uses: actions/checkout@v6\n\n- run: pipx install poetry\n- uses: actions/setup-python@v6\n  with:\n    cache: 'poetry'\n\n- run: poetry install\n- run: echo \"$(poetry env info --path)/bin\" \u003e\u003e $GITHUB_PATH\n\n- uses: jakebailey/pyright-action@v3\n```\n\n## Providing a pyright version sourced from preexisting dependencies\n\nThe `version` input only accepts \"latest\" or a specific version number. However,\nthere are many ways to use specify a version of `pyright` derived from other\ntools.\n\n### Using pyright from `$PATH`\n\nIf you have `pyright` installed in your environment, e.g. via the `pyright` PyPI\npackage, specify `version: PATH` to use the version that's on `$PATH`.\n\n```yml\n- run: |\n    python -m venv .venv\n    source .venv/bin/activate\n    pip install -r dev-requirements.txt # includes pyright\n\n- run: echo \"$PWD/.venv/bin\" \u003e\u003e $GITHUB_PATH\n\n- uses: jakebailey/pyright-action@v3\n  with:\n    version: PATH\n```\n\n### Keeping Pyright and Pylance in sync\n\nIf you use Pylance as your language server, you'll likely want pyright-action to\nuse the same version of `pyright` that Pylance does. The `pylance-version`\noption makes this easy.\n\nIf you allow VS Code to auto-update Pylance, then set `pylance-version` to\n`latest-release` if you use Pylance's Release builds, or `latest-prerelease` if\nyou use Pylance's Pre-Release builds. Alternatively, you can set it to a\nparticular Pylance version number (ex. `2023.11.11`).\n\nNote that the `version` option takes precedence over `pylance-version`, so\nyou'll want to set one or the other, not both.\n\n```yml\n- uses: jakebailey/pyright-action@v3\n  with:\n    pylance-version: latest-release\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakebailey%2Fpyright-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjakebailey%2Fpyright-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakebailey%2Fpyright-action/lists"}