feedback icon indicating copy to clipboard operation
feedback copied to clipboard

[Self-hosted] Use the same GLOBAL_UPLOAD_TOKEN for github_enterprise & github

Open nikosatwork opened this issue 5 months ago • 0 comments

Describe the bug We use a GLOBAL_UPLOAD_TOKEN for github_enterprise and recently integrated github too. However, it seems that we need to use a new GLOBAL_UPLOAD_TOKEN for github.

Environment (please complete the following information):

  • Browser: All
  • System: CI
  • Version: 25.4.1

To Reproduce Steps to reproduce the behavior:

  1. Setup github_enterprise & github a follows:
github_enterprise:
    url: https://github.cds.com
    api_url: https://github.cds.com/api/v3
    client_id: CLIENT_ID_GHE
    client_secret: CLIENT_SECRET_GHE
    webhook_secret: WEBHOOK_SECRET_GHE
    global_upload_token: GLOBAL_UPLOAD_TOKEN
    integration:
        id: 1
        pem: /codecov-secrets/scm_ca_cert_ghe.pem
github:
    client_id: CLIENT_ID_GH
    client_secret: CLIENT_SECRET_GH
    webhook_secret: WEBHOOK_SECRET_GH
    global_upload_token: GLOBAL_UPLOAD_TOKEN
    integration:
        id: 2
        pem: /codecov-secrets/scm_ca_cert_gh.pem
  1. Make sure that the same GLOBAL_UPLOAD_TOKEN is used for both
  2. Uploading fails with "Could not find a repository, try using repo upload token"
  3. If using a separate GLOBAL_UPLOAD_TOKEN the upload is successful

Expected behavior Using the same GLOBAL_UPLOAD_TOKEN for both github_enterprise & github does not fail the uploads

nikosatwork avatar May 02 '25 11:05 nikosatwork