mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[GH-ISSUE #759] problem with secret file and docker socket #479
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#479
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 @orcutt989 on GitHub (Jul 20, 2021).
Original GitHub issue: https://github.com/nektos/act/issues/759
imagecatthehacker/ubuntu:full-20.04act version0.2.23If I put
--secret-file ~/path/to/.envin the~/.actrcand do aact pull_request, act doesn't seem to be able to parse it. However if I do aact --secret-file .envit parses the secrets fine.When I attempt to do an
npm installI get aI'm hoping to not have to
sudo npm installas this is not something that needs to be done in GitHub actions.If I do a
act -b --secret-file .env pull_requestit gets further, but then I get a docker socket problem when I run Pulumi. I've already confirmed with @catthehacker that it is not an image problem.Thanks!
@catthehacker commented on GitHub (Jul 20, 2021):
actdoesn't handle non-root users well yet, and since full image is usingrunneruser just like GitHub Actions it breaks in many places, it's tracked in #398@orcutt989 commented on GitHub (Jul 20, 2021):
Gotcha! What are some possible workarounds that don't involve me changing the current workflow files from what GitHub Actions uses.
I see something in that post about using a script to crate users and such, but maybe there's a simpler way.
@catthehacker commented on GitHub (Jul 20, 2021):
as for the bind
-b, it doesn't work because macOS uses a VM and operates it via TCP instead of UNIX socket andDOCKER_*envvars are not forwarded to container.Currently there is no workaround for any of those issues
@orcutt989 commented on GitHub (Jul 20, 2021):
Ok so temporarily I could just throw in a run su - into my local ci files?
@catthehacker commented on GitHub (Jul 20, 2021):
that should work
@orcutt989 commented on GitHub (Jul 20, 2021):
Argh didnt work. Act just hangs at
@orcutt989 commented on GitHub (Jul 21, 2021):
su -is waiting for password.sudo sushould switchrunnertoroot, but act also hangs on this as well if i add arun: sudo su@orcutt989 commented on GitHub (Jul 21, 2021):
I switched to the medium image
catthehacker/ubuntu:act-latestand that seems to user the root user, but now it doesnt seem like mynpm installis working.@orcutt989 commented on GitHub (Jul 21, 2021):
Nevermind it was because
awswasn't installed in the medium image.