Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(github-actions): add filesystem UID/GID fixer after action workspace modification #1262

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

codejedi365
Copy link
Contributor

@codejedi365 codejedi365 commented May 25, 2025

Purpose

  • Solves the issue with random file permissions errors after release

Rationale

I found that here on PSR we had some issues writing the partial tags occasionally after PSR had created a commit. I discovered that this was because while in the Docker container, the commit action had turned certain files within the git repository (which is mounted into the container) to root owned files. Then afterword if the sha1 for the tag matched the first few characters of the sha1 of the commit then it would collide and fail with permissions errors on the .git/objects/ folder.

How did you test?

I ran this on my repository fork with a full file listing of the .git/ directory. I could see in comparison to when this project released to after this fix was implemented how the file ownership was corrected from root:root to runner:docker.


PR Completion Checklist

  • Reviewed & followed the Contributor Guidelines

  • Changes Implemented & Validation pipeline succeeds

  • Commits follow the Conventional Commits standard
    and are separated into the proper commit type and scope (recommended order: test, build, feat/fix, docs)

  • N/A Appropriate Unit tests added/updated

  • N/A Appropriate End-to-End tests added/updated

  • N/A Appropriate Documentation added/updated and syntax validated for sphinx build (see Contributor Guidelines)

@codejedi365 codejedi365 force-pushed the fix/gha-permissions-issues-in-container branch from fe8a87e to 57e1d2d Compare May 25, 2025 22:51
@codejedi365 codejedi365 merged commit 93e23c8 into python-semantic-release:master May 26, 2025
13 checks passed
@codejedi365 codejedi365 deleted the fix/gha-permissions-issues-in-container branch May 26, 2025 02:20
@codejedi365
Copy link
Contributor Author

🎉 This PR has been published as part of v10.0.2 🎉

You can find more information about this release on the GitHub Releases page.

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