mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[GH-ISSUE #728] Permission denied during unlinking .dockerignore #459
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#459
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @LouKordos on GitHub (Jun 7, 2021).
Original GitHub issue: https://github.com/nektos/act/issues/728
System information
act: catthehacker/ubuntu:full-20.04actversion: both on latest release and commit96a0564526Expected behaviour
checkout action should work as it does in Github Actions Runners.
Actual behaviour
Checkout action fails.
Workflow and/or repository
Clone Loukordos/walking_controller, run act -v -P ubuntu-20.04=catthehacker/ubuntu:full-20.04.
actoutputLog
@ChristopherHX commented on GitHub (Jun 8, 2021):
A non local checkout (you tried to checkout a different repo and branch), needs a
GITHUB_TOKENsecret, the readme might need more details.Create a personal access token (github) and add it as secret to act.
act -v -P ubuntu-20.04=catthehacker/ubuntu:full-20.04 -s GITHUB_TOKEN=<your pat token>oract -v -P ubuntu-20.04=catthehacker/ubuntu:full-20.04 -s GITHUB_TOKEN(will ask you if no env var GITHUB_TOKEN is set) or a.secretsfile with aGITHUB_TOKEN=tokenline.Github actions automatically creates it, act can't
Might be worth to automatically ask for
GITHUB_TOKENif one or more non local checkouts are detected.@LouKordos commented on GitHub (Jun 8, 2021):
Thanks so much, that makes sense! However, even when using
/home/loukas/go/bin/act -v -P ubuntu-20.04=catthehacker/ubuntu:full-20.04 -s GITHUB_TOKEN, and supplying my main token with full access, it fails with:even after
sudo chmod -R 777 .@LouKordos commented on GitHub (Jun 9, 2021):
I'd really love to debug this myself, but I find the output to be quite inconclusive... :/ I assume it fails because it does not have sufficient perms to delete the
.dockerignorefile?@github-actions[bot] commented on GitHub (Jul 10, 2021):
Issue is stale and will be closed in 14 days unless there is new activity
@68696c6c commented on GitHub (Dec 4, 2021):
I have this same issue on Arch linux as well with both ubuntu:full-18.04 and ubuntu:full-20.04. Providing a GITHUB_TOKEN secret doesn't fix it.
@joeyparrish commented on GitHub (Dec 20, 2021):
Could this be because of #398, where files are not copied to the container with the correct non-root user permissions? (Ideally, the "runner" user.)