Closed deechauhan closed 4 months ago
Hi @deechauhan, you can now prevent the glob action from accessing the .gitgnore file to resolve this error using the latest release.
- name: Verify Changed files
uses: tj-actions/verify-changed-files@v20
with:
files: coverage-badge.svg
read-gitignore: false
Is there an existing issue for this?
Does this issue exist in the latest version?
Describe the bug?
We use
verify-changed-files
to check whether a file (coverage-badge.svg
) has been changed or not. Recently, we started seeing the errorError: EACCES: permission denied, scandir '/home/runner/work/ugc-api-utils/ugc-api-utils/.pytest_cache'
and this happens according to the logs whentj-actions/glob@v21
starts doing##[debug]gitignore file patterns:
and one of the patterns in our gitignore is.pytest_cache
(which has always been there).This error only started happening today and i don't see how a permission issue can occur here since the workflow is the same and hasn't been changed.
To Reproduce
This is happening in a private repository. Steps we followed:
coverage-badge.svg
file in actions (this was added in thefiles
argument inverify-changed-files
)Error: EACCES: permission denied, scandir '/home/runner/work/ugc-api-utils/ugc-api-utils/.pytest_cache'
What OS are you seeing the problem on?
ubuntu-latest or ubuntu-22.04
Expected behavior?
Permission error not to be raised
Relevant log output
Has all relevant logs been included?
Anything else?
No response
Code of Conduct