Skip to content

Add permissions to check workflow#500

Merged
gaborbernat merged 3 commits intotox-dev:mainfrom
gaborbernat:fix/workflow-permissions
Feb 26, 2026
Merged

Add permissions to check workflow#500
gaborbernat merged 3 commits intotox-dev:mainfrom
gaborbernat:fix/workflow-permissions

Conversation

@gaborbernat
Copy link
Copy Markdown
Member

Summary

  • Add explicit permissions: contents: read to the check workflow to satisfy the actions/missing-workflow-permissions code scanning rule
  • All jobs only need read access (checkout, upload artifacts)

On FUSE/NFS, os.open(O_CREAT) is not atomic. Another
process's unlink() in _release can remove the lock file
between LOOKUP and CREATE, causing ENOENT. Catch this
and return to let the retry loop handle the contention.

Fixes tox-dev#494
Test that FileNotFoundError during os.open(O_CREAT)
is handled gracefully by the retry loop, simulating
the FUSE/NFS race condition from issue tox-dev#494.
@gaborbernat gaborbernat merged commit 4b8c261 into tox-dev:main Feb 26, 2026
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant