# Can't make ignore option work for directory with strict permissions

**URL:** <https://community.codecov.com/t/cant-make-ignore-option-work-for-directory-with-strict-permissions/3814>\
**Category:** Support\
**Created:** [August 9, 2022, 4:07pm UTC](https://community.codecov.com/t/cant-make-ignore-option-work-for-directory-with-strict-permissions/3814 "2022-08-09T16:07:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![artemgavrilov](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/artemgavrilov/32/2579_2.png) [@artemgavrilov](https://community.codecov.com/u/artemgavrilov)\
**Post date:** [August 9, 2022, 4:07pm UTC](https://community.codecov.com/t/cant-make-ignore-option-work-for-directory-with-strict-permissions/3814/1 "2022-08-09T16:07:51Z")

</div>

## Before submitting a topic, please confirm the following

[x] I have searched for similar issues before creating this topic.  
[x] I have verified that my repository is using the [Codecov GitHub app](https://github.com/apps/codecov), if using GitHub  
[x] I have [validated](https://docs.codecov.com/docs/codecov-yaml#validate-your-repository-yaml) my `codecov.yaml` configuration file.  
[x] I have filled out the below sections to the best of my ability.

### Description

We have fuzz tests in our repo and they generate some files in `fuzzdata` directory during tests run. This dir and files inside have strict permissions, so codecov action can’t read them. I added this folder to ignore, however action still failing and I still see error about permissions in logs. I checked codecov.yaml and it’s valid. Enabling `verbose` mode for action doesn’t bring more clarity where is the problem. I read all similar topics, but none of these solutions helped me.

### Repository

> **[GitHub - percona/pmm: Percona Monitoring and Management: an open source...](https://github.com/percona/pmm)**
>
> Percona Monitoring and Management: an open source database monitoring, observability and management tool

### Pull Request where I’m trying to fix the problem

> <https://github.com/percona/pmm/pull/1117/files>
>
> PMM-7
> 
> https://community.codecov.com/t/cant-make-ignore-option-work-for-direct…ory-with-strict-permissions/3814

### CI/CD URL

We allow codecov action to fail, so run is green, however noting was uploaded.  
[https://github.com/percona/pmm/runs/7749277335](https://github.com/percona/pmm/runs/7749277335)

### Codecov Output

```auto
==> linux OS detected
https://uploader.codecov.io/latest/linux/codecov.SHA256SUM
==> SHASUM file signed by key id 806bb28aed779869
==> Uploader SHASUM verified (66cbf87269acc529c87f6ea29395ba329f528e92cfda4fc199eab460123e18b6 codecov)
==> Running version latest
==> Running version v0.2.5
/home/runner/work/_actions/percona-platform/codecov-action/v3/dist/codecov -n -Q github-action-3.1.0 -e GO_VERSION,PMM_SERVER_IMAGE -f managed/cover.out -F managed -C a040df076365df0f91c037b534c33edc50c670d8 -v
[2022-08-09T15:26:11.918Z] ['verbose'] Start of uploader: 1660058771918...
[2022-08-09T15:26:11.919Z] ['info'] 
     _____ _
    / ____ | | |
   | | _____ | | ______  _______
   | | / _ \ / _` |/ _ \/ __/ _ \ \ / /
   | |___| (_) | (_| |__/ (_| (_) \ V /
    \ _____\___ / \ __,_|\___ |\ ___\___ / \_/

  Codecov report uploader 0.2.5
[2022-08-09T15:26:11.951Z] ['info'] => Project root located at: /home/runner/work/pmm/pmm
[2022-08-09T15:26:11.955Z] ['info'] -> No token specified or token is empty
[2022-08-09T15:26:11.955Z] ['verbose'] Start of network processing...
[2022-08-09T15:26:11.955Z] ['verbose'] Searching for files in /home/runner/work/pmm/pmm
[2022-08-09T15:26:11.966Z] ['verbose'] coveragepy is not installed
[2022-08-09T15:26:11.966Z] ['info'] Searching for coverage files...
[2022-08-09T15:26:12.037Z] ['error'] There was an error running the uploader: EACCES: permission denied, scandir '/home/runner/work/pmm/pmm/managed/services/grafana/fuzzdata'
[2022-08-09T15:26:12.038Z] ['verbose'] The error stack is: Error: EACCES: permission denied, scandir '/home/runner/work/pmm/pmm/managed/services/grafana/fuzzdata'
[2022-08-09T15:26:12.039Z] ['verbose'] End of uploader: 121 milliseconds

```

### Expected Results

`fuzzdata` directory ignored completely and coverage file uploaded sucessfully

### Actual Results

codecov action failing with error `There was an error running the uploader: EACCES: permission denied, scandir '/home/runner/work/pmm/pmm/managed/services/grafana/fuzzdata'` and no coverage uploaded.

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [August 17, 2022, 10:23pm UTC](https://community.codecov.com/t/cant-make-ignore-option-work-for-directory-with-strict-permissions/3814/2 "2022-08-17T22:23:18Z")

</div>

Hi @artemgavrilov, I’m working on a fix [here](https://github.com/codecov/uploader/pull/855). Should be deployed sometime next week.

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [August 24, 2022, 10:43pm UTC](https://community.codecov.com/t/cant-make-ignore-option-work-for-directory-with-strict-permissions/3814/3 "2022-08-24T22:43:32Z")

</div>

@artemgavrilov I just pushed `0.2.6` of the uploader. Can you try to see if this fixes your issue?

---

<div class="post-metadata">

**Author:** ![artemgavrilov](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/artemgavrilov/32/2579_2.png) [@artemgavrilov](https://community.codecov.com/u/artemgavrilov)\
**Post date:** [August 26, 2022, 10:29am UTC](https://community.codecov.com/t/cant-make-ignore-option-work-for-directory-with-strict-permissions/3814/4 "2022-08-26T10:29:40Z")

</div>

@tom Yay! Everything works fine now! Thanks!
