Cookies must be enabled to use Github

Hi All I have an action that’s failing with a http 403 error and it’s telling me I need to enable cookies

Run pypa/gh-action-pypi-publish@master
    verify_metadata: true
    password: ***
    verbose: true
    user: __token__
    packages_dir: dist
    skip_existing: false
    pythonLocation: /opt/hostedtoolcache/Python/3.7.11/x64
/usr/bin/docker run --name c8ce11c854c1454e43da8ff22ec0e3517db7_34b90a --label 48c8ce --workdir /github/workspace --rm -e pythonLocation -e INPUT_VERIFY_METADATA -e INPUT_PASSWORD -e INPUT_REPOSITORY_URL -e INPUT_VERBOSE -e INPUT_USER -e INPUT_PACKAGES_DIR -e INPUT_SKIP_EXISTING -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_RETENTION_DAYS -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_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e GITHUB_ACTION_REPOSITORY -e GITHUB_ACTION_REF -e GITHUB_PATH -e GITHUB_ENV -e RUNNER_OS -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e ACTIONS_CACHE_URL -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -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/Blocktrace/Blocktrace":"/github/workspace" 48c8ce:11c854c1454e43da8ff22ec0e3517db7  "__token__" "***" "" "dist" "true" "false" "true"
Checking dist/blocktrace-0.0.1-py3-none-any.whl: PASSED
Checking dist/blocktrace-0.0.1.tar.gz: PASSED
Uploading distributions to
  dist/blocktrace-0.0.1-py3-none-any.whl (2.1 KB)
  dist/blocktrace-0.0.1.tar.gz (1.8 KB)
username set by command options
password set by command options
username: __token__
password: <hidden>
Uploading blocktrace-0.0.1-py3-none-any.whl

  0%|          | 0.00/5.63k [00:00<?, ?B/s]
100%|██████████| 5.63k/5.63k [00:00<00:00, 84.5kB/s]
Content received from server:
Cookies must be enabled to use GitHub.
HTTPError: 403 Forbidden from

Any thoughts

Sorted I just took the repository_url parameter out and it works fine now

1 Like

Thanks for sharing your solution @BigIan1969 !