Skip to content

Deprecation warnings and very EOL python in turnstyle-python #2120

@h-vetinari

Description

@h-vetinari

I assume https://github.com/beckermr/turnstyle-python needs an update. This is what the logs look like; recent cryptography doesn't support 3.8 anymore, and the GH python API also has deprecated something it's using.

##[group]Build container for action use: '/home/runner/work/_actions/beckermr/turnstyle-python/8f1ceb87dabbbbebe42257b85c368f6110bb9170/Dockerfile'.
##[command]/usr/bin/docker build -t 7436ef:435ce8cebf614fae822225d36a56bfe5 -f "/home/runner/work/_actions/beckermr/turnstyle-python/8f1ceb87dabbbbebe42257b85c368f6110bb9170/Dockerfile" "/home/runner/work/_actions/beckermr/turnstyle-python/8f1ceb87dabbbbebe42257b85c368f6110bb9170"
#0 building with "default" instance using docker driver

#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 395B done
#1 DONE 0.0s

#2 [auth] library/python:pull token for registry-1.docker.io
#2 DONE 0.0s

#3 [internal] load metadata for docker.io/library/python:3.8-slim
#3 DONE 0.3s

#4 [internal] load .dockerignore
#4 transferring context: 2B done
#4 DONE 0.0s

#5 [internal] load build context
#5 transferring context: 3.25kB done
#5 DONE 0.0s

#6 [1/4] FROM docker.io/library/python:3.8-slim@sha256:1d52838af602b4b5a831beb13a0e4d073280665ea7be7f69ce2382f29c5a613f
#6 resolve docker.io/library/python:3.8-slim@sha256:1d52838af602b4b5a831beb13a0e4d073280665ea7be7f69ce2382f29c5a613f done
#6 sha256:1d52838af602b4b5a831beb13a0e4d073280665ea7be7f69ce2382f29c5a613f 10.41kB / 10.41kB done
#6 sha256:314bc2fb0714b7807bf5699c98f0c73817e579799f2d91567ab7e9510f5601a5 1.75kB / 1.75kB done
#6 sha256:b5f62925bd0f63f48cc8acd5e87d0c3a07e2f229cd2fb0a9586e68ed17f45ee3 5.25kB / 5.25kB done
#6 sha256:302e3ee498053a7b5332ac79e8efebec16e900289fc1ecd1c754ce8fa047fcab 19.92MB / 29.13MB 0.1s
#6 sha256:030d7bdc20a63e3d22192b292d006a69fa3333949f536d62865d1bd0506685cc 3.51MB / 3.51MB 0.1s done
#6 sha256:a3f1dfe736c5f959143f23d75ab522a60be2da902efac236f4fb2a153cc14a5d 13.63MB / 14.53MB 0.1s
#6 sha256:3971691a363796c39467aae4cdce6ef773273fe6bfc67154d01e1b589befb912 248B / 248B 0.1s done
#6 sha256:302e3ee498053a7b5332ac79e8efebec16e900289fc1ecd1c754ce8fa047fcab 29.13MB / 29.13MB 0.1s done
#6 sha256:a3f1dfe736c5f959143f23d75ab522a60be2da902efac236f4fb2a153cc14a5d 14.53MB / 14.53MB 0.1s done
#6 extracting sha256:302e3ee498053a7b5332ac79e8efebec16e900289fc1ecd1c754ce8fa047fcab
#6 extracting sha256:302e3ee498053a7b5332ac79e8efebec16e900289fc1ecd1c754ce8fa047fcab 1.1s done
#6 extracting sha256:030d7bdc20a63e3d22192b292d006a69fa3333949f536d62865d1bd0506685cc 0.1s
#6 extracting sha256:030d7bdc20a63e3d22192b292d006a69fa3333949f536d62865d1bd0506685cc 0.1s done
#6 extracting sha256:a3f1dfe736c5f959143f23d75ab522a60be2da902efac236f4fb2a153cc14a5d
#6 extracting sha256:a3f1dfe736c5f959143f23d75ab522a60be2da902efac236f4fb2a153cc14a5d 0.6s done
#6 extracting sha256:3971691a363796c39467aae4cdce6ef773273fe6bfc67154d01e1b589befb912 done
#6 DONE 3.3s

#7 [2/4] RUN pip install pygithub
#7 1.466 Collecting pygithub
#7 1.501   Downloading pygithub-2.8.1-py3-none-any.whl (432 kB)
#7 1.527      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 432.7/432.7 kB 19.0 MB/s eta 0:00:00
#7 1.569 Collecting typing-extensions>=4.5.0
#7 1.573   Downloading typing_extensions-4.13.2-py3-none-any.whl (45 kB)
#7 1.577      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 45.8/45.8 kB 19.3 MB/s eta 0:00:00
#7 1.639 Collecting urllib3>=1.26.0
#7 1.643   Downloading urllib3-2.2.3-py3-none-any.whl (126 kB)
#7 1.647      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 126.3/126.3 kB 52.1 MB/s eta 0:00:00
#7 1.703 Collecting requests>=2.14.0
#7 1.708   Downloading requests-2.32.4-py3-none-any.whl (64 kB)
#7 1.712      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 64.8/64.8 kB 23.0 MB/s eta 0:00:00
#7 1.765 Collecting pynacl>=1.4.0
#7 1.769   Downloading pynacl-1.6.2-cp38-abi3-manylinux_2_34_x86_64.whl (1.4 MB)
#7 1.785      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.4/1.4 MB 99.6 MB/s eta 0:00:00
#7 1.818 Collecting pyjwt[crypto]>=2.4.0
#7 1.822   Downloading PyJWT-2.9.0-py3-none-any.whl (22 kB)
#7 2.372 Collecting cryptography>=3.4.0
#7 2.378   Downloading cryptography-47.0.0-cp38-abi3-manylinux_2_34_x86_64.whl (4.7 MB)
#7 2.425      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.7/4.7 MB 105.8 MB/s eta 0:00:00
#7 2.742 Collecting cffi>=1.4.1
#7 2.746   Downloading cffi-1.17.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (446 kB)
#7 2.754      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 446.5/446.5 kB 85.9 MB/s eta 0:00:00
#7 3.032 Collecting charset_normalizer<4,>=2
#7 3.036   Downloading charset_normalizer-3.4.7-cp38-cp38-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (199 kB)
#7 3.042      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 199.2/199.2 kB 61.2 MB/s eta 0:00:00
#7 3.081 Collecting certifi>=2017.4.17
#7 3.085   Downloading certifi-2026.5.20-py3-none-any.whl (134 kB)
#7 3.090      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 134.1/134.1 kB 48.8 MB/s eta 0:00:00
#7 3.126 Collecting idna<4,>=2.5
#7 3.130   Downloading idna-3.15-py3-none-any.whl (72 kB)
#7 3.134      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 72.3/72.3 kB 29.6 MB/s eta 0:00:00
#7 3.162 Collecting pycparser
#7 3.166   Downloading pycparser-2.23-py3-none-any.whl (118 kB)
#7 3.171      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 118.1/118.1 kB 48.6 MB/s eta 0:00:00
#7 3.267 Installing collected packages: urllib3, typing-extensions, pyjwt, pycparser, idna, charset_normalizer, certifi, requests, cffi, pynacl, cryptography, pygithub
#7 4.124 Successfully installed certifi-2026.5.20 cffi-1.17.1 charset_normalizer-3.4.7 cryptography-47.0.0 idna-3.15 pycparser-2.23 pygithub-2.8.1 pyjwt-2.9.0 pynacl-1.6.2 requests-2.32.4 typing-extensions-4.13.2 urllib3-2.2.3
#7 4.124 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
#7 4.228 
#7 4.228 [notice] A new release of pip is available: 23.0.1 -> 25.0.1
#7 4.228 [notice] To update, run: pip install --upgrade pip
#7 DONE 4.4s

#8 [3/4] COPY entrypoint.sh /entrypoint.sh
#8 DONE 0.0s

#9 [4/4] COPY turnstyle.py /turnstyle.py
#9 DONE 0.0s

#10 exporting to image
#10 exporting layers
#10 exporting layers 1.0s done
#10 writing image sha256:35fb4ce3619d7ad52093bc8f979265d30336259da77e6246f760b6518ad30337 done
#10 naming to docker.io/library/7436ef:435ce8cebf614fae822225d36a56bfe5 done
#10 DONE 1.0s
##[endgroup]
##[group]Run beckermr/turnstyle-python@8f1ceb87dabbbbebe42257b85c368f6110bb9170
with:
  abort-after-seconds: 3
  poll-interval-seconds: 2
  github-token: ***
##[endgroup]
##[command]/usr/bin/docker run --name ef435ce8cebf614fae822225d36a56bfe5_d9e6ac --label 7436ef --workdir /github/workspace --rm -e "INPUT_ABORT-AFTER-SECONDS" -e "INPUT_POLL-INTERVAL-SECONDS" -e "INPUT_GITHUB-TOKEN" -e "INPUT_CONTINUE-AFTER-SECONDS" -e "INPUT_WORKFLOW-NAME" -e "GITHUB_TOKEN" -e "POLL_INTERVAL" -e "CONTINUE_AFTER" -e "ABORT_AFTER" -e "WORKFLOW_NAME" -e "HOME" -e "GITHUB_JOB" -e "GITHUB_REF" -e "GITHUB_SHA" -e "GITHUB_REPOSITORY" -e "GITHUB_REPOSITORY_OWNER" -e "GITHUB_REPOSITORY_OWNER_ID" -e "GITHUB_RUN_ID" -e "GITHUB_RUN_NUMBER" -e "GITHUB_RETENTION_DAYS" -e "GITHUB_RUN_ATTEMPT" -e "GITHUB_ACTOR_ID" -e "GITHUB_ACTOR" -e "GITHUB_WORKFLOW" -e "GITHUB_HEAD_REF" -e "GITHUB_BASE_REF" -e "GITHUB_EVENT_NAME" -e "GITHUB_SERVER_URL" -e "GITHUB_API_URL" -e "GITHUB_GRAPHQL_URL" -e "GITHUB_REF_NAME" -e "GITHUB_REF_PROTECTED" -e "GITHUB_REF_TYPE" -e "GITHUB_WORKFLOW_REF" -e "GITHUB_WORKFLOW_SHA" -e "GITHUB_REPOSITORY_ID" -e "GITHUB_TRIGGERING_ACTOR" -e "GITHUB_WORKSPACE" -e "GITHUB_ACTION" -e "GITHUB_EVENT_PATH" -e "GITHUB_ACTION_REPOSITORY" -e "GITHUB_ACTION_REF" -e "GITHUB_PATH" -e "GITHUB_ENV" -e "GITHUB_STEP_SUMMARY" -e "GITHUB_STATE" -e "GITHUB_OUTPUT" -e "RUNNER_OS" -e "RUNNER_ARCH" -e "RUNNER_NAME" -e "RUNNER_ENVIRONMENT" -e "RUNNER_TOOL_CACHE" -e "RUNNER_TEMP" -e "RUNNER_WORKSPACE" -e "ACTIONS_RUNTIME_URL" -e "ACTIONS_RUNTIME_TOKEN" -e "ACTIONS_CACHE_URL" -e "ACTIONS_RESULTS_URL" -e "ACTIONS_ORCHESTRATION_ID" -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp":"/github/runner_temp" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/admin-requests/admin-requests":"/github/workspace" 7436ef:435ce8cebf614fae822225d36a56bfe5
computed workflow name 'run'
computed branch 'main' for workflow
No running workflows found! Continuing!
/usr/local/lib/python3.8/site-packages/jwt/utils.py:7: CryptographyDeprecationWarning: Python 3.8 is no longer supported by the Python core team and support for it is deprecated in cryptography. The next release of cryptography will remove support for Python 3.8.
  from cryptography.hazmat.primitives.asymmetric.ec import EllipticCurve
/turnstyle.py:54: DeprecationWarning: Argument login_or_token is deprecated, please use auth=github.Auth.Token(...) instead
  gh = github.Github(os.environ["GITHUB_TOKEN"])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions