{"id":28563855,"url":"https://github.com/twisted/python-info-action","last_synced_at":"2026-03-02T13:41:55.445Z","repository":{"id":41960922,"uuid":"316555110","full_name":"twisted/python-info-action","owner":"twisted","description":"A GitHub Actions action for printing Python environment information","archived":false,"fork":false,"pushed_at":"2024-07-22T14:15:25.000Z","size":99,"stargazers_count":2,"open_issues_count":5,"forks_count":4,"subscribers_count":11,"default_branch":"main","last_synced_at":"2025-10-04T13:35:53.291Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/twisted.png","metadata":{"files":{"readme":"README.rst","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":"2020-11-27T16:50:59.000Z","updated_at":"2024-07-30T02:26:24.000Z","dependencies_parsed_at":"2024-06-14T19:24:32.627Z","dependency_job_id":"ea5260d2-9fd3-4a56-95c7-e35f8a263729","html_url":"https://github.com/twisted/python-info-action","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/twisted/python-info-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twisted%2Fpython-info-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twisted%2Fpython-info-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twisted%2Fpython-info-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twisted%2Fpython-info-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/twisted","download_url":"https://codeload.github.com/twisted/python-info-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twisted%2Fpython-info-action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000718,"owners_count":26082895,"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-08T02:00:06.501Z","response_time":56,"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":"2025-06-10T13:08:54.884Z","updated_at":"2025-10-09T01:37:08.354Z","avatar_url":"https://github.com/twisted.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"twisted/python-info-action\n==========================\n\nMany CI configurations are setup to report various information about the environment they are running in.\nThis is usually done ad hoc resulting in lots of unnecessarily repeated code that often is missing relevant information.\nThis GitHub Action dumps various information relevant to the Python environment.\n\n\nWarning\n-------\n\nThis action is designed specifically to log environmental data.\nEnvironment variables can often contain secrets which you may not want exposed.\nThe ``github`` context contains an authentication token.\nIn general, if you use GitHub's secrets feature then they will be masked in the build log.\nThe file output option will not have any redaction.\nNotes are included below about details.\n\n\nUsage\n-----\n\nThe point of providing this feature as a GitHub Action is that it can be easily added to your CI configuration with as little as a single line.\n\n.. code-block:: yaml\n\n    - uses: twisted/python-info-action@v1\n\nIf you need to specify a Python executable to use instead of what would be found by searching the path, you can pass it via ``python-path``.\nThis will be processed using bash so wildcards can be used.\nOne common use for this would be to create a tox environment using ``--notest``, use this action with ``python-path: .tox/the_env/*/python``, then actually run the tox environment after.\n\n.. code-block:: yaml\n\n    - uses: twisted/python-info-action@v1\n      with:\n        python-path: env/*/python\n\nIf you are not using GitHub's secrets feature, or otherwise want to mask environment variables for this action, you can just explicitly overwrite them.\n\n.. code-block:: yaml\n\n    - uses: twisted/python-info-action@v1\n      env:\n        A_SECRET: '\u003credacted\u003e'\n\nIf you want the output stored to a file you can pass ``output-path``.\nRemember that secrets will not be masked from this output.\nSpecifically note that the GitHub token will be present regardless.\nFor more explanation see |token_discussion|_.\n\n.. code-block:: yaml\n\n    - uses: twisted/python-info-action@v1\n      with:\n        output-path: environment.log\n\nGitHub provides |uses_documentation|_.\n\n.. |uses_documentation| replace:: more documentation for ``uses``\n.. _uses_documentation: https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstepsuses\n.. |token_discussion| replace:: a discussion about the token\n.. _token_discussion: https://github.com/twisted/python-info-action/pull/11#discussion_r598122839\n\nCompatibility\n-------------\n\nBasic tests are run against various Python versions and operating systems.\n\n- Operating System\n   - Linux\n   - macOS\n   - Windows\n- Python\n   - CPython 3.7, 3.8, 3.9, and 3.10\n   - PyPy 2, 3.7, and 3.8\n\nSample Output\n-------------\n\n.. code-block::\n\n    Python Details\n    ==============\n\n    sys.version              : 3.9.2 (default, Feb 19 2021, 19:41:08)\n    [GCC 9.3.0]\n    sys.prefix               : /opt/hostedtoolcache/Python/3.9.2/x64\n    sys.exec_prefix          : /opt/hostedtoolcache/Python/3.9.2/x64\n    sys.executable           : /opt/hostedtoolcache/Python/3.9.2/x64/bin/python\n    struct.calcsize(\"P\") * 8 : 64\n\n    Environment Variables\n    =====================\n\n    'ACTION_FILE_PATH'                    : 'output_pre.log'\n    'AGENT_TOOLSDIRECTORY'                : '/opt/hostedtoolcache'\n    'ANDROID_HOME'                        : '/usr/local/lib/android/sdk'\n    'ANDROID_NDK_HOME'                    : '/usr/local/lib/android/sdk/ndk-bundle'\n    'ANDROID_NDK_LATEST_HOME'             : '/usr/local/lib/android/sdk/ndk/22.0.7026061'\n    \u003csnip\u003e\n    'SWIFT_PATH'                          : '/usr/share/swift/usr/bin'\n    'USER'                                : 'runner'\n    'VCPKG_INSTALLATION_ROOT'             : '/usr/local/share/vcpkg'\n    '_'                                   : '/opt/hostedtoolcache/Python/3.9.2/x64/bin/python'\n    'pythonLocation'                      : '/opt/hostedtoolcache/Python/3.9.2/x64'\n\n    Installed Packages\n    ==================\n\n    pip==21.0.1\n    setuptools==49.2.1\n\n    Workflow Details\n    ================\n\n\n    Steps\n    -----\n\n    {}\n\n    GitHub\n    ------\n\n    {\n        \"token\": \"***\",\n        \"job\": \"ci\",\n        \"ref\": \"refs/tags/v1\",\n        \"sha\": \"49042d6852bce250821e1e91d8cea9e7d4dd5f81\",\n        \"repository\": \"twisted/python-info-action\",\n        \u003csnip\u003e\n        \"action_repository\": \"\",\n        \"action_ref\": \"\",\n        \"path\": \"/home/runner/work/_temp/_runner_file_commands/add_path_4e829b24-d946-4a3b-9ffa-11f3ec54893c\",\n        \"env\": \"/home/runner/work/_temp/_runner_file_commands/set_env_4e829b24-d946-4a3b-9ffa-11f3ec54893c\",\n        \"action_path\": \"/home/runner/work/python-info-action/python-info-action/./\"\n    }\n\n    Matrix\n    ------\n\n    {\n        \"os\": {\n            \"name\": \"Linux\",\n            \"runs-on\": \"ubuntu-latest\"\n        },\n        \"python\": {\n            \"name\": \"CPython 3.9\",\n            \"action\": 3.9\n        }\n    }\n\n    Runner\n    ------\n\n    {\n        \"os\": \"Linux\",\n        \"tool_cache\": \"/opt/hostedtoolcache\",\n        \"temp\": \"/home/runner/work/_temp\",\n        \"workspace\": \"/home/runner/work/python-info-action\"\n    }\n\n    Strategy\n    --------\n\n    {\n        \"fail-fast\": false,\n        \"job-index\": 5,\n        \"job-total\": 27,\n        \"max-parallel\": 27\n    }\n\n    Job\n    ---\n\n    {\n        \"status\": \"success\"\n    }\n\n\nSupport\n-------\n\nIf you need help with usage, find an issue, or have some information you think would be appropriate for lots of CI runs to report...\nPlease `file an issue \u003chttps://github.com/twisted/python-info-action/issues/new\u003e`_.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwisted%2Fpython-info-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftwisted%2Fpython-info-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwisted%2Fpython-info-action/lists"}