codecov-action icon indicating copy to clipboard operation
codecov-action copied to clipboard

Not valid tokenless upload

Open greg0ire opened this issue 6 months ago • 5 comments

As asked in https://github.com/codecov/codecov-action/issues/1487#issuecomment-2258551527, I'm opening a new ticket.

The failure is still happening for tokenless uploads for doctrine/dbal. What's weird is that I've seen it work on one of my own PRs, made from my fork.

Error message

error - 2024-08-17 09:46:06,912 -- Report creating failed: {"detail":"Not valid tokenless upload"}

Job definition

  upload_coverage:
    name: "Upload coverage to Codecov"
    runs-on: "ubuntu-22.04"
    needs:
      - "phpunit-smoke-check"
      - "phpunit-oci8"
      - "phpunit-pdo-oci"
      - "phpunit-postgres"
      - "phpunit-mariadb"
      - "phpunit-mysql"
      - "phpunit-mssql"
      - "phpunit-ibm-db2"


    steps:
      - name: "Checkout"
        uses: "actions/checkout@v4"
        with:
          fetch-depth: 2


      - name: "Download coverage files"
        uses: "actions/download-artifact@v4"
        with:
          path: "reports"


      - name: "Display structure of downloaded files"
        run: ls -R
        working-directory: reports


      - name: "Upload to Codecov"
        uses: "codecov/codecov-action@v4"
        with:
          directory: reports
          fail_ci_if_error: true
        env:
          CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

Links

greg0ire avatar Aug 17 '24 10:08 greg0ire