Repository navigation
Permission denied error on macOS with v5 #1771
Copy link
Copy link
Closed
Labels
Area: Report UploadIssues with pre-ingest report uploadingIssues with pre-ingest report uploading[Source] Open Source[Type] Fixcodecov/codecov-action
Description
Describe the bug
Error:
codecov-action/v5/dist/codecov.sh: line 252: ./codecov: Permission denied
Log:
Run codecov/codecov-action@v5
Run CC_ACTION_VERSION=$(cat ${GITHUB_ACTION_PATH}/src/version)
==> Running Action version 5.3.1
Run git config --global --add safe.directory /Users/buildbox/Source/actions-runner/_work/client/client
Run CC_FORK="false"
Run if [ "false" == 'true' ] && [ "$CC_FORK" != 'true' ];
==> Token set from env
Run if [ -z "$CC_BRANCH" ] && [ -z "$CC_TOKEN" ] && [ "$CC_FORK" == 'true' ]
Run if [ -z "$CC_SHA" ];
Run ${GITHUB_ACTION_PATH}/dist/codecov.sh
_____ _
/ ____| | |
| | ___ __| | ___ ___ _____ __
| | / _ \ / _` |/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| | __/ (_| (_) \ V /
\_____\___/ \__,_|\___|\___\___/ \_/
Wrapper-0.1.0
==> Detected macos
-> Downloading https://cli.codecov.io/latest/macos/codecov
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 21.9M 0 99k 0 0 447k 0 0:00:50 --:--:-- 0:00:50 446k
47 21.9M 47 10.4M 0 0 8743k 0 0:00:02 0:00:01 0:00:01 8738k
97 21.9M 97 21.3M 0 0 9845k 0 0:00:02 0:00:02 --:--:-- 9842k
100 21.9M 100 21.9M 0 0 9868k 0 0:00:02 0:00:02 --:--:-- 98[64](https://github.com/snxd/client/actions/runs/13418288950/job/37484513793?pr=2961#step:64:66)k
==> Finishing downloading macos:latest
Version: v10.0.1
==> Bypassing validation...
-> Token of length 36 detected
==> Running upload-coverage
./codecov upload-coverage -t <redacted> --fail-on-error --git-service github --sha 955337de135323eb2166b8a4fef06b6924fdb56f --flag macarm64 --gcov-executable gcov --name Coverage - macOS - Ninja Clang
/Users/buildbox/Source/actions-runner/_work/_actions/codecov/codecov-action/v5/dist/codecov.sh: line 252: ./codecov: Permission deniedTo Reproduce
- name: Publish coverage report
uses: codecov/codecov-action@v5
if: always() && !cancelled()
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: ${{ matrix.codecov }}
name: ${{ matrix.name }}
verbose: false
fail_ci_if_error: true
skip_validation: true
env:
CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}"Versions
- OS: macOS 15 arm64
- Git Host: GitHub self-hosted runner
- CI/CD: GitHub Actions
- Uploader: codecov-action@v5
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Area: Report UploadIssues with pre-ingest report uploadingIssues with pre-ingest report uploading[Source] Open Source[Type] Fixcodecov/codecov-action
Activity
thomasrockhu-codecov commentedon Feb 20, 2025
@nmoinvaz can you run this in verbose mode?
nmoinvaz commentedon Mar 3, 2025
Verbose shows nearly the same response.
Was there something you were looking for?
nmoinvaz commentedon Mar 3, 2025
Maybe this has to do with
skip_validation: truethomasrockhu-codecov commentedon Mar 3, 2025
@nmoinvaz oh! good catch, Ill push out a fix this week
nmoinvaz commentedon Mar 7, 2025
Hi Thomas, just checking in to see if you were able to push this fix. Thanks!
nmoinvaz commentedon Mar 14, 2025
Bump? :-)
thomasrockhu-codecov commentedon Mar 15, 2025
Sorry @nmoinvaz this was a little more complicated than I expected. Hoping to get something out next week
nmoinvaz commentedon Mar 15, 2025
Thanks! 🙏🏻
nmoinvaz commentedon Mar 29, 2025
Any word?
8 remaining items
jviall commentedon Aug 19, 2025
Just wanted to bump that I'm also hitting this still despite the fix--but probably because the main repo isn't using the latest wrapper? I did submit a PR to update that in order to fix #1863
my CI output:
Run ${GITHUB_ACTION_PATH}/dist/codecov.sh ${GITHUB_ACTION_PATH}/dist/codecov.sh shell: /bin/bash --noprofile --norc -e -o pipefail {0} env: OS: macos-latest PYTHON: 3.13 CODECOV_TOKEN: *** pythonLocation: /Users/runner/hostedtoolcache/Python/3.13.5/arm64 PKG_CONFIG_PATH: /Users/runner/hostedtoolcache/Python/3.13.5/arm64/lib/pkgconfig Python_ROOT_DIR: /Users/runner/hostedtoolcache/Python/3.13.5/arm64 Python2_ROOT_DIR: /Users/runner/hostedtoolcache/Python/3.13.5/arm64 Python3_ROOT_DIR: /Users/runner/hostedtoolcache/Python/3.13.5/arm64 VENV: .venv/bin/activate CC_FORK: false CC_TOKEN: *** CC_BRANCH: CC_SHA: ef2edf24740ca1c0021b71cca27bb06fd6e7930e CC_PR: CC_BASE_SHA: CC_BINARY: CC_BUILD: CC_BUILD_URL: CC_CODE: CC_DIR: .coverage CC_DISABLE_FILE_FIXES: false CC_DISABLE_SEARCH: false CC_DISABLE_TELEM: false CC_DRY_RUN: false CC_ENTERPRISE_URL: CC_ENV: OS,PYTHON CC_EXCLUDES: CC_FAIL_ON_ERROR: false CC_FILES: CC_FLAGS: CC_FORCE: CC_GCOV_ARGS: CC_GCOV_EXECUTABLE: gcov CC_GCOV_IGNORE: CC_GCOV_INCLUDE: CC_GIT_SERVICE: github CC_HANDLE_NO_REPORTS_FOUND: false CC_JOB_CODE: CC_LEGACY: false CC_NAME: CC_NETWORK_FILTER: CC_NETWORK_PREFIX: CC_NETWORK_ROOT_FOLDER: CC_OS: CC_PARENT_SHA: CC_PLUGINS: CC_RECURSE_SUBMODULES: false CC_REPORT_TYPE: CC_RUN_CMD: upload-coverage CC_SERVICE: github CC_SKIP_VALIDATION: true CC_SLUG: CC_SWIFT_PROJECT: CC_USE_PYPI: false CC_VERBOSE: true CC_VERSION: latest CC_YML_PATH: _____ _ / ____| | | | | ___ __| | ___ ___ _____ __ | | / _ \ / _` |/ _ \/ __/ _ \ \ / / | |___| (_) | (_| | __/ (_| (_) \ V / \_____\___/ \__,_|\___|\___\___/ \_/ Wrapper-0.2.1==> Detected macos
-> Downloading https://cli.codecov.io/latest/macos/codecov
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 15.6M 100 15.6M 0 0 103M 0 --:--:-- --:--:-- --:--:-- 104M
==> Finishing downloading macos:latest
Version: v11.1.0
==> Bypassing validation...
-> Token of length 36 detected
==> Running upload-coverage
./codecov --verbose upload-coverage -t --git-service github --sha ef2edf24740ca1c0021b71cca27bb06fd6e7930e --env OS,PYTHON --dir .coverage --gcov-executable gcov
/Users/runner/work/_actions/codecov/codecov-action/v5/dist/codecov.sh: line 253: ./codecov: Permission denied
==> Failed to run upload-coverage
nmoinvaz commentedon Aug 19, 2025
I'm still getting the same error even when trying @main in my GH action.
thomasrockhu-codecov commentedon Aug 19, 2025
@jviall @nmoinvaz this is my fault, I thought I had made a new release. I'll do that today
thomasrockhu-codecov commentedon Aug 19, 2025
@nmoinvaz oh you mentioned
mainis also failing, can you shoot over a PR you see it on if possible?jviall commentedon Aug 19, 2025
It's because
mainis still referencing an old version of the wrapper (0.2.1). It's not targeting main but you can see the error occurring in this CI run of mine on a different project. I already put up a PR to try to upgrade the version of the wrapper--@thomasrockhu-codecov could you give it a review?thomasrockhu-codecov commentedon Aug 20, 2025
@jviall @nmoinvaz, I just pushed
5.5.0, let me know if that is working for you!nmoinvaz commentedon Aug 20, 2025
@thomasrockhu-codecov works good thank you! Feel free to close this.