codecov / codecov/codecov-action
v5: Requires `curl` and `jq`
Open
@thomasrockhu-codecov is already working on this.
Since Dec 25, 2024.
codecov/codecov-action
Docs
- Dominant language
- Python
- Stars
- 1.7k
- Forks
- 260
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 1
Description
Similar to #349, v5 now requires curl and jq. IMHO this should either be documented somewhere (especially in the migration guide) or be installed automatically (if needed) by the action.
If this action is used e.g. inside a docker container (like in the following case), these tools might not be installed.
Logs: https://github.com/sersoft-gmbh/route-docs/actions/runs/12462193284/job/34782791963?pr=181
Snippet showing the execution of the codecov-action
2024-12-23T06:13:31.2581820Z ##[group]Run codecov/codecov-action@v5
2024-12-23T06:13:31.2582284Z with:
2024-12-23T06:13:31.2582646Z token: ***
2024-12-23T06:13:31.2583112Z files: /__w/route-docs/route-docs/.swiftcov/route-docsPackageTests.xctest.coverage.lcov
2024-12-23T06:13:31.2583715Z fail_ci_if_error: true
2024-12-23T06:13:31.2584029Z disable_file_fixes: false
2024-12-23T06:13:31.2584537Z disable_search: false
2024-12-23T06:13:31.2584941Z disable_safe_directory: false
2024-12-23T06:13:31.2585247Z dry_run: false
2024-12-23T06:13:31.2585763Z git_service: github
2024-12-23T06:13:31.2586035Z gcov_executable: gcov
2024-12-23T06:13:31.2586351Z handle_no_reports_found: false
2024-12-23T06:13:31.2586717Z skip_validation: false
2024-12-23T06:13:31.2587071Z use_legacy_upload_endpoint: false
2024-12-23T06:13:31.2587410Z use_oidc: false
2024-12-23T06:13:31.2587742Z verbose: false
2024-12-23T06:13:31.2587974Z version: latest
2024-12-23T06:13:31.2588243Z ##[endgroup]
2024-12-23T06:13:31.2614786Z ##[group]Run CC_ACTION_VERSION=$(cat ${GITHUB_ACTION_PATH}/src/version)
2024-12-23T06:13:31.2615387Z [36;1mCC_ACTION_VERSION=$(cat ${GITHUB_ACTION_PATH}/src/version)[0m
2024-12-23T06:13:31.2615886Z [36;1mecho -e "\033[0;32m==>\033[0m Running Action version $CC_ACTION_VERSION"[0m
2024-12-23T06:13:31.2616529Z shell: bash --noprofile --norc -e -o pipefail {0}
2024-12-23T06:13:31.2616943Z ##[endgroup]
2024-12-23T06:13:31.3419945Z [0;32m==>[0m Running Action version 5.1.2
2024-12-23T06:13:31.3475775Z ##[group]Run git config --global --add safe.directory /home/runner/work/route-docs/route-docs
2024-12-23T06:13:31.3476613Z [36;1mgit config --global --add safe.directory /home/runner/work/route-docs/route-docs[0m
2024-12-23T06:13:31.3477262Z shell: bash --noprofile --norc -e -o pipefail {0}
2024-12-23T06:13:31.3477686Z ##[endgroup]
2024-12-23T06:13:31.4186292Z ##[group]Run CC_FORK="false"
2024-12-23T06:13:31.4186753Z [36;1mCC_FORK="false"[0m
2024-12-23T06:13:31.4187374Z [36;1mif [ -n "$GITHUB_EVENT_PULL_REQUEST_HEAD_REPO_FULL_NAME" ] && [ "$GITHUB_EVENT_PULL_REQUEST_HEAD_REPO_FULL_NAME" != "$GITHUB_REPOSITORY" ];[0m
2024-12-23T06:13:31.4188041Z [36;1mthen[0m
2024-12-23T06:13:31.4188345Z [36;1m echo -e "\033[0;32m==>\033[0m Fork detected"[0m
2024-12-23T06:13:31.4188728Z [36;1m CC_FORK="true"[0m
2024-12-23T06:13:31.4189072Z [36;1mfi[0m
2024-12-23T06:13:31.4189414Z [36;1mecho "CC_FORK=$CC_FORK" >> "$GITHUB_ENV"[0m
2024-12-23T06:13:31.4189949Z shell: bash --noprofile --norc -e -o pipefail {0}
2024-12-23T06:13:31.4190397Z env:
2024-12-23T06:13:31.4190905Z GITHUB_EVENT_PULL_REQUEST_HEAD_LABEL: sersoft-gmbh:dependabot/swift/github.com/vapor/vapor-4.110.0
2024-12-23T06:13:31.4191521Z GITHUB_EVENT_PULL_REQUEST_HEAD_REPO_FULL_NAME: sersoft-gmbh/route-docs
2024-12-23T06:13:31.4192027Z GITHUB_REPOSITORY: sersoft-gmbh/route-docs
2024-12-23T06:13:31.4192389Z ##[endgroup]
2024-12-23T06:13:31.4928083Z ##[group]Run if [ "false" == 'true' ] && [ "$CC_FORK" != 'true' ];
2024-12-23T06:13:31.4928603Z [36;1mif [ "false" == 'true' ] && [ "$CC_FORK" != 'true' ];[0m
2024-12-23T06:13:31.4928978Z [36;1mthen[0m
2024-12-23T06:13:31.4929360Z [36;1m # {"count":1984,"value":"***"}[0m
2024-12-23T06:13:31.4929866Z [36;1m echo -e "\033[0;32m==>\033[0m Requesting OIDC token from '$ACTIONS_ID_TOKEN_REQUEST_URL'"[0m
2024-12-23T06:13:31.4930777Z [36;1m CC_TOKEN=$(curl -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" "$ACTIONS_ID_TOKEN_REQUEST_URL&audience=https://codecov.io" | cut -d\" -f6)[0m
2024-12-23T06:13:31.4931555Z [36;1m echo "CC_TOKEN=$CC_TOKEN" >> "$GITHUB_ENV"[0m
2024-12-23T06:13:31.4931888Z [36;1melif [ -n "" ];[0m
2024-12-23T06:13:31.4932235Z [36;1mthen[0m
2024-12-23T06:13:31.4932587Z [36;1m echo -e "\033[0;32m==>\033[0m Token set from env"[0m
2024-12-23T06:13:31.4932985Z [36;1m echo "CC_TOKEN=" >> "$GITHUB_ENV"[0m
2024-12-23T06:13:31.4933398Z [36;1melse[0m
2024-12-23T06:13:31.4933846Z [36;1m if [ -n "***" ];[0m
2024-12-23T06:13:31.4934143Z [36;1m then[0m
2024-12-23T06:13:31.4934580Z [36;1m echo -e "\033[0;32m==>\033[0m Token set from input"[0m
2024-12-23T06:13:31.4935099Z [36;1m CC_TOKEN=$(echo "***" | tr -d '\n')[0m
2024-12-23T06:13:31.4935586Z [36;1m echo "CC_TOKEN=$CC_TOKEN" >> "$GITHUB_ENV"[0m
2024-12-23T06:13:31.4935943Z [36;1m fi[0m
2024-12-23T06:13:31.4936209Z [36;1mfi[0m
2024-12-23T06:13:31.4936917Z shell: bash --noprofile --norc -e -o pipefail {0}
2024-12-23T06:13:31.4937318Z env:
2024-12-23T06:13:31.4937593Z CC_FORK: false
2024-12-23T06:13:31.4937962Z ##[endgroup]
2024-12-23T06:13:31.5598086Z [0;32m==>[0m Token set from input
2024-12-23T06:13:31.5666948Z ##[group]Run if [ -z "$CC_BRANCH" ] && [ -z "$CC_TOKEN" ] && [ "$CC_FORK" == 'true' ]
2024-12-23T06:13:31.5667567Z [36;1mif [ -z "$CC_BRANCH" ] && [ -z "$CC_TOKEN" ] && [ "$CC_FORK" == 'true' ][0m
2024-12-23T06:13:31.5667963Z [36;1mthen[0m
2024-12-23T06:13:31.5668482Z [36;1m echo -e "\033[0;32m==>\033[0m Fork detected, setting branch to $GITHUB_EVENT_PULL_REQUEST_HEAD_LABEL"[0m
2024-12-23T06:13:31.5669059Z [36;1m TOKENLESS="$GITHUB_EVENT_PULL_REQUEST_HEAD_LABEL"[0m
2024-12-23T06:13:31.5669478Z [36;1m CC_BRANCH="$GITHUB_EVENT_PULL_REQUEST_HEAD_LABEL"[0m
2024-12-23T06:13:31.5669979Z [36;1m echo "TOKENLESS=$TOKENLESS" >> "$GITHUB_ENV"[0m
2024-12-23T06:13:31.5670353Z [36;1mfi[0m
2024-12-23T06:13:31.5670661Z [36;1m[0m
2024-12-23T06:13:31.5671000Z [36;1mecho "CC_BRANCH=$CC_BRANCH" >> "$GITHUB_ENV"[0m
2024-12-23T06:13:31.5671505Z shell: bash --noprofile --norc -e -o pipefail {0}
2024-12-23T06:13:31.5671933Z env:
2024-12-23T06:13:31.5672219Z CC_FORK: false
2024-12-23T06:13:31.5672607Z CC_TOKEN: ***
2024-12-23T06:13:31.5672954Z CC_BRANCH:
2024-12-23T06:13:31.5673492Z GITHUB_EVENT_PULL_REQUEST_HEAD_LABEL: sersoft-gmbh:dependabot/swift/github.com/vapor/vapor-4.110.0
2024-12-23T06:13:31.5674102Z GITHUB_EVENT_PULL_REQUEST_HEAD_REPO_FULL_NAME: sersoft-gmbh/route-docs
2024-12-23T06:13:31.5674651Z GITHUB_REPOSITORY: sersoft-gmbh/route-docs
2024-12-23T06:13:31.5674990Z ##[endgroup]
2024-12-23T06:13:31.6498107Z ##[group]Run if [ -z "$CC_SHA" ];
2024-12-23T06:13:31.6498480Z [36;1mif [ -z "$CC_SHA" ];[0m
2024-12-23T06:13:31.6498776Z [36;1mthen[0m
2024-12-23T06:13:31.6499164Z [36;1m CC_SHA="$GITHUB_EVENT_PULL_REQUEST_HEAD_SHA"[0m
2024-12-23T06:13:31.6499551Z [36;1mfi[0m
2024-12-23T06:13:31.6499904Z [36;1mif [ -z "$CC_PR" ] && [ "${GITHUB_EVENT_NAME}" == "pull_request_target" ];[0m
2024-12-23T06:13:31.6500396Z [36;1mthen[0m
2024-12-23T06:13:31.6500698Z [36;1m CC_PR="$GITHUB_EVENT_NUMBER"[0m
2024-12-23T06:13:31.6501090Z [36;1mfi[0m
2024-12-23T06:13:31.6501377Z [36;1m[0m
2024-12-23T06:13:31.6501626Z [36;1mecho "CC_SHA=$CC_SHA" >> "$GITHUB_ENV"[0m
2024-12-23T06:13:31.6502054Z [36;1mecho "CC_PR=$CC_PR" >> "$GITHUB_ENV"[0m
2024-12-23T06:13:31.6502597Z shell: bash --noprofile --norc -e -o pipefail {0}
2024-12-23T06:13:31.6502951Z env:
2024-12-23T06:13:31.6503279Z CC_FORK: false
2024-12-23T06:13:31.6503686Z CC_TOKEN: ***
2024-12-23T06:13:31.6503939Z CC_BRANCH:
2024-12-23T06:13:31.6504295Z CC_PR:
2024-12-23T06:13:31.6504510Z CC_SHA:
2024-12-23T06:13:31.6504758Z GITHUB_EVENT_NAME: pull_request
2024-12-23T06:13:31.6505186Z GITHUB_EVENT_NUMBER: 181
2024-12-23T06:13:31.6505597Z GITHUB_EVENT_PULL_REQUEST_HEAD_SHA: 0b5208183536c5d8f1ef9d2c5adc43e42f4e1040
2024-12-23T06:13:31.6506101Z ##[endgroup]
2024-12-23T06:13:31.7298466Z ##[group]Run ${GITHUB_ACTION_PATH}/dist/codecov.sh
2024-12-23T06:13:31.7298919Z [36;1m${GITHUB_ACTION_PATH}/dist/codecov.sh[0m
2024-12-23T06:13:31.7299598Z shell: bash --noprofile --norc -e -o pipefail {0}
2024-12-23T06:13:31.7299971Z env:
2024-12-23T06:13:31.7300236Z CC_FORK: false
2024-12-23T06:13:31.7300643Z CC_TOKEN: ***
2024-12-23T06:13:31.7300940Z CC_BRANCH:
2024-12-23T06:13:31.7301225Z CC_SHA: 0b5208183536c5d8f1ef9d2c5adc43e42f4e1040
2024-12-23T06:13:31.7301638Z CC_PR:
2024-12-23T06:13:31.7301900Z CC_BINARY:
2024-12-23T06:13:31.7302134Z CC_BUILD:
2024-12-23T06:13:31.7302499Z CC_BUILD_URL:
2024-12-23T06:13:31.7302743Z CC_CODE:
2024-12-23T06:13:31.7302972Z CC_DIR:
2024-12-23T06:13:31.7303321Z CC_DISABLE_FILE_FIXES: false
2024-12-23T06:13:31.7303625Z CC_DISABLE_SEARCH: false
2024-12-23T06:13:31.7303962Z CC_DRY_RUN: false
2024-12-23T06:13:31.7304269Z CC_ENTERPRISE_URL:
2024-12-23T06:13:31.7304541Z CC_ENV:
2024-12-23T06:13:31.7304802Z CC_EXCLUDES:
2024-12-23T06:13:31.7305295Z CC_FAIL_ON_ERROR: true
2024-12-23T06:13:31.7305782Z CC_FILES: /__w/route-docs/route-docs/.swiftcov/route-docsPackageTests.xctest.coverage.lcov
2024-12-23T06:13:31.7306544Z CC_FLAGS:
2024-12-23T06:13:31.7306801Z CC_GCOV_ARGS:
2024-12-23T06:13:31.7307072Z CC_GCOV_EXECUTABLE: gcov
2024-12-23T06:13:31.7307452Z CC_GCOV_IGNORE:
2024-12-23T06:13:31.7307681Z CC_GCOV_INCLUDE:
2024-12-23T06:13:31.7307955Z CC_GIT_SERVICE: github
2024-12-23T06:13:31.7308331Z CC_HANDLE_NO_REPORTS_FOUND: false
2024-12-23T06:13:31.7308662Z CC_JOB_CODE:
2024-12-23T06:13:31.7308974Z CC_LEGACY: false
2024-12-23T06:13:31.7309248Z CC_NAME:
2024-12-23T06:13:31.7309482Z CC_NETWORK_FILTER:
2024-12-23T06:13:31.7309810Z CC_NETWORK_PREFIX:
2024-12-23T06:13:31.7310102Z CC_NETWORK_ROOT_FOLDER:
2024-12-23T06:13:31.7310405Z CC_OS:
2024-12-23T06:13:31.7310720Z CC_PARENT_SHA:
2024-12-23T06:13:31.7310999Z CC_PLUGINS:
2024-12-23T06:13:31.7311246Z CC_REPORT_TYPE:
2024-12-23T06:13:31.7311562Z CC_SKIP_VALIDATION: false
2024-12-23T06:13:31.7311876Z CC_SLUG:
2024-12-23T06:13:31.7312113Z CC_SWIFT_PROJECT:
2024-12-23T06:13:31.7312483Z CC_VERBOSE: false
2024-12-23T06:13:31.7312759Z CC_VERSION: latest
2024-12-23T06:13:31.7313085Z CC_YML_PATH:
2024-12-23T06:13:31.7313380Z ##[endgroup]
2024-12-23T06:13:31.8053487Z _____ _
2024-12-23T06:13:31.8054547Z / ____| | |
2024-12-23T06:13:31.8055498Z | | ___ __| | ___ ___ _____ __
2024-12-23T06:13:31.8056084Z | | / _ \ / _` |/ _ \/ __/ _ \ \ / /
2024-12-23T06:13:31.8056650Z | |___| (_) | (_| | __/ (_| (_) \ V /
2024-12-23T06:13:31.8057312Z \_____\___/ \__,_|\___|\___\___/ \_/
2024-12-23T06:13:31.8058169Z [0;31m Wrapper-0.0.31[0m
2024-12-23T06:13:31.8058747Z
2024-12-23T06:13:31.8100682Z [0;32m==>[0m Detected [0;36mlinux[0m
2024-12-23T06:13:31.8101662Z [0;32m ->[0m Downloading [0;36mhttps://cli.codecov.io/latest/linux/codecov[0m
2024-12-23T06:13:31.8105661Z /__w/_actions/codecov/codecov-action/v5/dist/codecov.sh: line 84: curl: command not found
2024-12-23T06:13:31.8107053Z [0;32m==>[0m Finishing downloading [0;36mlinux:latest[0m
2024-12-23T06:13:31.8115131Z /__w/_actions/codecov/codecov-action/v5/dist/codecov.sh: line 87: curl: command not found
2024-12-23T06:13:31.8118024Z /__w/_actions/codecov/codecov-action/v5/dist/codecov.sh: line 87: jq: command not found
2024-12-23T06:13:31.8121430Z Version: [0;36m[0m
2024-12-23T06:13:31.8122060Z
2024-12-23T06:13:31.8128364Z /__w/_actions/codecov/codecov-action/v5/dist/codecov.sh: line 95: curl: command not found
2024-12-23T06:13:31.8156433Z gpg: directory '/github/home/.gnupg' created
2024-12-23T06:13:31.8163802Z gpg: keybox '/github/home/.gnupg/pubring.kbx' created
2024-12-23T06:13:31.8164917Z gpg: no valid OpenPGP data found.
2024-12-23T06:13:31.8165804Z gpg: Total number processed: 0
2024-12-23T06:13:31.8169857Z [0;32m==>[0m Verifying GPG signature integrity
2024-12-23T06:13:31.8171284Z [0;32m ->[0m Downloading [0;36mhttps://cli.codecov.io/latest/linux/codecov.SHA256SUM[0m
2024-12-23T06:13:31.8173396Z [0;32m ->[0m Downloading [0;36mhttps://cli.codecov.io/latest/linux/codecov.SHA256SUM.sig[0m
2024-12-23T06:13:31.8174403Z
2024-12-23T06:13:31.8175208Z /__w/_actions/codecov/codecov-action/v5/dist/codecov.sh: line 106: curl: command not found
2024-12-23T06:13:31.8178758Z /__w/_actions/codecov/codecov-action/v5/dist/codecov.sh: line 107: curl: command not found
2024-12-23T06:13:31.8200256Z gpg: can't open 'codecov.SHA256SUM.sig': No such file or directory
2024-12-23T06:13:31.8201247Z gpg: verify signatures failed: No such file or directory
2024-12-23T06:13:31.8205331Z [0;31m==> Could not verify signature. Please contact Codecov if problem continues[0m
2024-12-23T06:13:31.8206363Z [0;31m Exiting...[0m
2024-12-23T06:13:31.8249236Z ##[error]Process completed with exit code 1.
2024-12-23T06:13:31.8345184Z Post job cleanup.
2024-12-23T06:13:31.8400449Z Post job cleanup.
2024-12-23T06:13:31.8406174Z ##[command]/usr/bin/docker exec ab6a827bc78bbf05be8b316df198af8d178dd3061dd447d76177a29741074bc6 sh -c "cat /etc/*release | grep ^ID"
2024-12-23T06:13:32.0737330Z [command]/usr/bin/git version
2024-12-23T06:13:32.0774490Z git version 2.43.0
2024-12-23T06:13:32.0813340Z Copying '/github/home/.gitconfig' to '/__w/_temp/b21a4a5e-5d5b-4393-8323-df123abde26c/.gitconfig'
2024-12-23T06:13:32.0831979Z Temporarily overriding HOME='/__w/_temp/b21a4a5e-5d5b-4393-8323-df123abde26c' before making global git config changes
2024-12-23T06:13:32.0834942Z Adding repository directory to the temporary git global config as a safe directory
2024-12-23T06:13:32.0838417Z [command]/usr/bin/git config --global --add safe.directory /__w/route-docs/route-docs
2024-12-23T06:13:32.0871382Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
2024-12-23T06:13:32.0903687Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
2024-12-23T06:13:32.1138551Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
2024-12-23T06:13:32.1158645Z http.https://github.com/.extraheader
2024-12-23T06:13:32.1171929Z [command]/usr/bin/git config --local --unset-all http.https://github.com/.extraheader
2024-12-23T06:13:32.1202217Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
2024-12-23T06:13:32.1602043Z Stop and remove container: f65147db6e77464f90257de5bd006533_swift60_972354
2024-12-23T06:13:32.1606859Z ##[command]/usr/bin/docker rm --force ab6a827bc78bbf05be8b316df198af8d178dd3061dd447d76177a29741074bc6
2024-12-23T06:13:32.4511691Z ab6a827bc78bbf05be8b316df198af8d178dd3061dd447d76177a29741074bc6
2024-12-23T06:13:32.4544024Z Remove container network: github_network_4d81c91e23834a96ba2a16c3187bee4a
2024-12-23T06:13:32.4548132Z ##[command]/usr/bin/docker network rm github_network_4d81c91e23834a96ba2a16c3187bee4a
2024-12-23T06:13:32.7429257Z github_network_4d81c91e23834a96ba2a16c3187bee4a
2024-12-23T06:13:32.7483367Z Cleaning up orphan processes
Extract:
/__w/_actions/codecov/codecov-action/v5/dist/codecov.sh: line 84: curl: command not found
/__w/_actions/codecov/codecov-action/v5/dist/codecov.sh: line 87: jq: command not found
Also, it might be a good idea to check for failures or use set -e in bash to prevent the command from continuing.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.