Comments (7)
Fixed
Lines 52 to 54 in 992f4d7
from pull-request.
@wei thanks, but you fixed only the first problem.
This pr #90 fixes the second problem.
from pull-request.
Can you elaborate and provide reproduction steps?
causes some problems with the files in future runs
from pull-request.
Can you elaborate and provide reproduction steps?
When a container runs, it uses the root user by default, that new files created in a container will be added to a runner with root user permissions.
After the first run, next runs will fail at this step:
- uses: actions/checkout@v3
because a runner is using a different user (not root) and can not clear files with root permission (git clean
)
jobs:
pull-request:
runs-on: [ self-hosted, Linux ]
steps:
- uses: actions/checkout@v3
- uses: docker://ghcr.io/repo-sync/pull-request:v2.8
with:
destination_branch: "main"
github_token: ${{ secrets.GITHUB_TOKEN }}
from pull-request.
Same problem here, the workflow cannot run twice. Second run fails to delete files created with the root user by the first run.
from pull-request.
The permission issue with self-hosted runners is a general issue that happens to all docker based actions on self-hosted runners.
You can find discussions, solutions, and provide feedback at actions/runner#434
I'm going to mark this as a wontfix for now but open to revisit in the future.
from pull-request.
Added a section to README: Docker Container Image Usage
from pull-request.
Related Issues (20)
- UNTRUSTED signature error pulling v2.9 HOT 3
- Wildcard in destination_branch HOT 1
- Broken release HOT 7
- Error creating pull request: Unprocessable Entity (HTTP 422) HOT 17
- fatal: unable to access <Git Repo URL>: The requested URL returned error: 400 HOT 10
- Action stopped evaluating parameters as shell scripts HOT 3
- Any way to update the existing PR using this action HOT 4
- Incorrect DESTINATION_REPOSITORY value with release v2.12 HOT 6
- Need to understand about docker image usage HOT 1
- Getting error `Resource not accessible by integration` HOT 7
- get pull request url HOT 1
- Add action typing HOT 4
- Pull Request no longer successful HOT 1
- Allow Forcing PR Creation When No Files Changed HOT 3
- Bug: No longer supports repositories containing periods in their names HOT 1
- Error requesting reviewer: Unprocessable Entity (HTTP 422) HOT 3
- Action flagged as "error" while it's just doing nothing HOT 1
- pull_request_target not triggered HOT 1
- Add delete_branch option HOT 2
- Repo to be archived, but README doesn't provide full replacement HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pull-request.