{"id":5803693,"name":"microsoft/action-python","ecosystem":"actions","description":"Run actions for Python Project on pull requests to improve code review experience.","homepage":"","licenses":"mit","normalized_licenses":["MIT"],"repository_url":"https://github.com/microsoft/action-python","keywords_array":[],"namespace":"microsoft","versions_count":39,"first_release_published_at":"2022-09-25T05:10:46.000Z","latest_release_published_at":"2024-05-16T23:01:28.000Z","latest_release_number":"0.7.3","last_synced_at":"2026-03-17T10:19:29.394Z","created_at":"2023-01-04T14:39:49.368Z","updated_at":"2026-03-17T10:19:29.394Z","registry_url":"https://github.com/microsoft/action-python","install_command":null,"documentation_url":null,"metadata":{"name":"Python Actions Collection","description":"Run actions for Python Project on pull requests to improve code review experience.","author":"dciborow","inputs":{"root":{"description":"Project root directory.\nDefault '.'\n","default":"."},"toml":{"description":"pyproject.toml location.\nDefault pyproject.toml\n","default":"pyproject.toml"},"python_version":{"description":"Python Version\nDefault is '3.7'.\n","default":"3.7"},"black":{"description":"Run Black\nDefault is false.\n","default":false},"bandit":{"description":"Run Bandit\nDefault is false.\n","default":false},"pylint":{"description":"Run Pylint\nDefault is false.\n","default":false},"pyright":{"description":"Run Pyright\nDefault is false.\n","default":false},"flake8":{"description":"Run Flake8\nDefault is false.\n","default":false},"pytest":{"description":"Run tests with PyTest\nDefault is false.\n","default":false},"pypi_publish":{"description":"Publish to PyPi\nDefault is false\n","default":false},"args":{"description":"Customize which tests run with Pytest Markers\n","default":""},"pypi_repo":{"description":"PyPi Target. Use this to point to private or test locations.      \nDefault testpypi\n","default":"pypi"},"pypi_password":{"description":"Credentials for PyPi\n","default":""},"version_suffix":{"description":"Value to append to version in order to produce unique id for PyPi.\nExamples include: \n  '-rc {{ github.run_attempt }}'\n  '-dev {{ github.run_attempt }}'\n","default":""},"github_token":{"description":"GITHUB_TOKEN","default":"${{ github.token }}"},"workdir":{"description":"Working directory relative to the root directory.","default":"src"},"testdir":{"description":"Test directory","default":"tests"},"coverage":{"description":"Flags for code coverage","default":true},"flags":{"description":"Flags for code coverage","default":"unittests"},"level":{"description":"Report level for reviewdog [info,warning,error]","default":"error"},"reporter":{"description":"Reporter of reviewdog command [github-pr-check,github-pr-review].","default":"github-pr-check"},"filter_mode":{"description":"Filtering mode for the reviewdog command [added,diff_context,file,nofilter].\nDefault is added.\n","default":"added"},"fail_on_error":{"description":"Exit code for reviewdog when errors are found [true,false]\nDefault is `false`.\n","default":"false"},"reviewdog_flags":{"description":"Additional reviewdog flags","default":""}},"runs":{"using":"composite","steps":[{"if":"${{ inputs.black == 'true' }}","uses":"rickstaa/action-black@v1","id":"action_black","with":{"black_args":"--config ${{ inputs.root }}/${{ inputs.toml }} ${{ inputs.root }}/${{ inputs.workdir }}"}},{"if":"steps.action_black.outputs.is_formatted == 'true'","uses":"reviewdog/action-suggester@v1","with":{"tool_name":"blackfmt","fail_on_error":true}},{"if":"${{ inputs.bandit  == 'true' }}","uses":"dciborow/action-bandit@0.0.2","with":{"workdir":"${{ inputs.root }}"}},{"if":"${{ inputs.flake8  == 'true' }}","run":"if [ $(cat pyproject.toml | grep \"tool.flake8\") ]; then\n  python -m pip install --upgrade pip\n  python -m pip install flake8-pyproject\nfi\n","shell":"bash"},{"if":"${{ inputs.flake8  == 'true' }}","uses":"reviewdog/action-flake8@v3","with":{"github_token":"${{ inputs.github_token }}","workdir":"${{ inputs.root }}/${{ inputs.workdir }}"}},{"if":"${{ inputs.pylint == 'true' }}","uses":"actions/setup-python@v5","with":{"python-version":"${{ inputs.python_version }}","cache":"pip"}},{"if":"${{ inputs.pylint == 'true' }}","shell":"bash","run":"python -m pip install --upgrade pip\npython -m pip install pylint\ncd \"${{ inputs.root }}/${{ inputs.workdir }}\"\npython -m flit install || python -m pip install .\n"},{"if":"${{ inputs.pylint == 'true' }}","uses":"dciborow/action-pylint@0.1.1","with":{"github_token":"${{ inputs.github_token }}","workdir":"${{ inputs.root }}/${{ inputs.workdir }}"}},{"if":"${{ inputs.pyright == 'true' }}","uses":"jakebailey/pyright-action@v1.8.1","with":{"working-directory":"${{ inputs.root }}/${{ inputs.workdir }}","project":"${{ inputs.toml }}"}},{"if":"${{ inputs.pytest == 'true' || inputs.pypi_publish  == 'true' }}","uses":"actions/setup-python@v5","with":{"python-version":"${{ inputs.python_version }}","cache":"pip"}},{"if":"${{ inputs.pytest == 'true' }}","shell":"bash","run":"python -m pip install --upgrade pip\npython -m pip install pytest pytest-xdist pytest-cov flit requests_mock\ncd \"${{ inputs.root }}/${{ inputs.workdir }}\"\npython -m flit install || python -m pip install .\npython -m pytest '${{ inputs.args }}' ${{ inputs.testdir }}\n"},{"if":"${{ inputs.pytest == 'true' \u0026\u0026 inputs.coverage == 'true' }}","uses":"codecov/codecov-action@v3","with":{"flags":"${{ inputs.flags }}"}},{"if":"${{ inputs.pypi_publish == 'true' }}","shell":"bash","env":{"FLIT_USERNAME":"__token__","FLIT_PASSWORD":"${{ inputs.pypi_password }}"},"run":"cd \"${{ inputs.root }}\"\n\npython -m pip install --upgrade pip\npython -m pip install flit\n\nsed -i -r 's/\\\"[0-9]\\.[0-9]\\.[0-9]+\\\"/\u0026\\\"${{ inputs.version_suffix }}\\\"/g' src/*/__init__.py\npython -m flit publish $repository --repository ${{ inputs.pypi_repo }} --pypirc .pypirc\n"}]},"branding":{"icon":"check","color":"blue"},"default_branch":"main","path":null},"repo_metadata":{"id":60169035,"uuid":"531747004","full_name":"microsoft/action-python","owner":"microsoft","description":null,"archived":true,"fork":false,"pushed_at":"2025-03-24T20:00:04.000Z","size":83,"stargazers_count":61,"open_issues_count":9,"forks_count":22,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-10-17T13:57:31.037Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"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/microsoft.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":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-02T01:55:12.000Z","updated_at":"2025-10-10T19:47:49.000Z","dependencies_parsed_at":"2024-05-16T23:48:51.023Z","dependency_job_id":"eec6a6f1-ce95-43c8-abbc-c1698172aaae","html_url":"https://github.com/microsoft/action-python","commit_stats":{"total_commits":27,"total_committers":1,"mean_commits":27.0,"dds":0.0,"last_synced_commit":"a0b154cfe8b9f2ab32fc6390470aee66c7d9ebe3"},"previous_names":[],"tags_count":39,"template":false,"template_full_name":"dciborow/pyaction","purl":"pkg:github/microsoft/action-python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Faction-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Faction-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Faction-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Faction-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/microsoft","download_url":"https://codeload.github.com/microsoft/action-python/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Faction-python/sbom","scorecard":{"id":643242,"data":{"date":"2025-08-11","repo":{"name":"github.com/microsoft/action-python","commit":"ed947dfbc6ae8554e260cb9767fe3bafd6019b97"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.5,"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":"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":"Maintained","score":0,"reason":"project is archived","details":["Warn: Repository is archived."],"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":"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":"Code-Review","score":0,"reason":"Found 0/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":"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":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: SECURITY.md:1","Info: Found linked content: SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: SECURITY.md:1","Info: Found text in security policy: SECURITY.md:1"],"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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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":-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 21 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"}}]},"last_synced_at":"2025-08-21T11:23:37.615Z","repository_id":60169035,"created_at":"2025-08-21T11:23:37.615Z","updated_at":"2025-08-21T11:23:37.615Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279553763,"owners_count":26189910,"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-10-18T02:00:06.492Z","response_time":62,"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"},"owner_record":{"login":"microsoft","name":"Microsoft","uuid":"6154722","kind":"organization","description":"Open source projects and samples from Microsoft","email":"opensource@microsoft.com","website":"https://opensource.microsoft.com","location":"Redmond, WA","twitter":"OpenAtMicrosoft","company":null,"icon_url":"https://avatars.githubusercontent.com/u/6154722?v=4","repositories_count":7413,"last_synced_at":"2025-10-10T00:07:37.919Z","metadata":{"has_sponsors_listing":false},"html_url":"https://github.com/microsoft","funding_links":[],"total_stars":3539276,"followers":104311,"following":0,"created_at":"2022-11-02T16:20:12.368Z","updated_at":"2025-10-10T00:07:37.919Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/microsoft","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/microsoft/repositories"},"tags":[]},"repo_metadata_updated_at":"2025-10-19T15:17:36.720Z","dependent_packages_count":0,"downloads":null,"downloads_period":null,"dependent_repos_count":3,"rankings":{"downloads":null,"dependent_repos_count":18.04468388527967,"dependent_packages_count":0.0,"stargazers_count":8.10014260814451,"forks_count":6.794485818412296,"docker_downloads_count":null,"average":8.234828077959119},"purl":"pkg:githubactions/microsoft/action-python","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/actions/microsoft/action-python","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/actions/microsoft/action-python","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/actions/microsoft/action-python/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":{"last_synced_at":"2025-08-17T20:17:30.961Z","issues_count":3,"pull_requests_count":41,"avg_time_to_close_issue":3970774.0,"avg_time_to_close_pull_request":4145599.6470588236,"issues_closed_count":3,"pull_requests_closed_count":34,"pull_request_authors_count":5,"issue_authors_count":3,"avg_comments_per_issue":0.3333333333333333,"avg_comments_per_pull_request":0.34146341463414637,"merged_pull_requests_count":24,"bot_issues_count":0,"bot_pull_requests_count":28,"past_year_issues_count":1,"past_year_pull_requests_count":14,"past_year_avg_time_to_close_issue":245.0,"past_year_avg_time_to_close_pull_request":5973849.875,"past_year_issues_closed_count":1,"past_year_pull_requests_closed_count":8,"past_year_pull_request_authors_count":3,"past_year_issue_authors_count":1,"past_year_avg_comments_per_issue":0.0,"past_year_avg_comments_per_pull_request":0.42857142857142855,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":12,"past_year_merged_pull_requests_count":3,"issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Faction-python/issues","maintainers":[{"login":"dciborow","count":11,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/dciborow"}],"active_maintainers":[]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/microsoft%2Faction-python/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/microsoft%2Faction-python/version_numbers","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/microsoft%2Faction-python/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/microsoft%2Faction-python/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/microsoft%2Faction-python/codemeta","maintainers":[]}