Skip to content

No CI provider detected. Github actions env var issue. #102

@dwillist

Description

@dwillist

Seeing a new failure when running this action, with the output "No CI provider detected". From this line in the script.

Seems like the assumptions around which github environment variables are available to this action need to be updated.
Maybe here?

Full output:

Run codecov/codecov-action@v1
  with:
    file: ./out/tests/coverage-unit.txt
    flags: unit,os_macos
    fail_ci_if_error: true
  env:
    PACK_BIN: pack
    NO_DOCKER: true
    PACK_VERSION: 0.0.0
    GOROOT: /Users/runner/hostedtoolcache/go/1.14.6/x64
    GOPATH: /Users/runner/go
    GITHUB_ACTION: 
    GITHUB_RUN_ID: 193840501
    GITHUB_REF: refs/pull/769/merge
    GITHUB_REPOSITORY: buildpacks/pack
    GITHUB_SHA: bc1d7f725f8b665f2535eaaf4a49eea91954c57c
    GITHUB_HEAD_REF: 253_inspect_builder_enhancement

x> No CI provider detected.
    Testing inside Docker? http://docs.codecov.io/docs/testing-with-docker
    Testing with Tox? https://docs.codecov.io/docs/python#section-testing-with-tox
    project root: .
    Yaml found at: codecov.yml
    -> Found 1 reports
==> Detecting git/mercurial file structure
==> Reading reports
    + ./out/tests/coverage-unit.txt bytes=149464
==> Appending adjustments
    https://docs.codecov.io/docs/fixing-reports
    + Found adjustments
==> Gzipping contents
==> Uploading reports
    url: https://codecov.io
    query: branch=&commit=1a28f9f0261c2e81d06fca6e6791e22d6ce510e0&build=&build_url=&name=&tag=&slug=buildpacks%2Fpack&service=&flags=unit,os_macos&pr=&job=&cmd_args=f,n,F,Z
->  Pinging Codecov
https://codecov.io/upload/v4?package=bash-20200728-9fb7d93&token=secret&branch=&commit=1a28f9f0261c2e81d06fca6e6791e22d6ce510e0&build=&build_url=&name=&tag=&slug=buildpacks%2Fpack&service=&flags=unit,os_macos&pr=&job=&cmd_args=f,n,F,Z
HTTP 400
Please provide the repository token to upload reports via `-t :repository-token`
##[error]Codecov failed with the following error: The process 'bash' failed with exit code 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions