No CI provider detected. Github actions env var issue.
See original GitHub issueIssue Description
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
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:14 (7 by maintainers)
Top Results From Across the Web
The CI environment variable is not set in GitHub Actions #368
The CI environment variable is not set in GitHub Actions. A lot of software relies on that to detect whether it's running in...
Read more >workflow(codecov-action): No CI provider detected · Issue ... - GitHub
No CI provider detected. Github actions env var issue. codecov/codecov-action#102 · Context variable GITHUB_ACTION empty actions/runner#635 · GITHUB_ACTION ...
Read more >gh-actions: No CI provider detected. · Issue #209 - GitHub
The codecov-bash tools seems to be able to do just fine in Github Actions without needing a token at all. Would be nice...
Read more >"Unable to locate build via Github Actions API" after switching ...
The solution was to run act with the additional argument --env CODECOV_TOKEN=xxx , where xxx is the token that you can find from...
Read more >Workflow level env does not work properly in all fields. #480
Describe the bug When using workflow level environment variables they do not work when I use them to substitute for jobs.build.name or ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
We are expecting this to be resolved by 10AM ET as documented by GitHub
@thomasrockhu back to working again, thank you very much for your assistance! 😃