Skip to content

Git Permissions Issue #208

Answered by crazy-max
LandonSchropp asked this question in Q&A
Discussion options

You must be logged in to vote

@LandonSchropp

I'm a little confused on how Docker plays in to the new workflow.

Indeed, actions using Docker write files with root permissions unfortunately. That's why all my actions use Typescript because this is native and also more efficient (not build or download Docker image for the action).

What you can do to fix this issue with borales/actions-yarn is chown your workspace with sudo chown -R $(id -u):$(id -g) ${GITHUB_WORKSPACE} after but it could be slow if you've got many files and it's awful :)

So looking at your workflow I suggest to not use Docker actions when it's possible. In your case your workflow could run faster with this configuration:

name: Publish

on:
  push:
    …

Replies: 7 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by crazy-max
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #20 on September 01, 2023 05:48.