mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[GH-ISSUE #279] Allow loading secrets from a .env file #193
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#193
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 @patoroco on GitHub (Jun 14, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/279
Hi,
currently
actsupports passing the secrets using the shell in two ways:In the second option, if the
SECRETenvironment variable exists, it will take that value, if not, it will prompt the user each time.It would be really nice load these values directly from a
.envfile, what do you suggest?@MAHDTech commented on GitHub (Jun 15, 2020):
You can try this, works for both secrets and standard environment variables.
👍
@cplee commented on GitHub (Jun 15, 2020):
thanks @MAHDTech!
@patoroco - can we close this?
@patoroco commented on GitHub (Jun 15, 2020):
Oh, actually the @MAHDTech's explanation is not a workaround, it's just what I was looking for! Thanks @MAHDTech!
BTW, the only reference that I've found related to that is this file:
github.com/nektos/act@2f395475b0/pkg/runner/testdata/secrets/.actrc (L2)Maybe we could add a small mention to it in the README, what do you think?
@patoroco commented on GitHub (Jun 16, 2020):
Done! Thanks
docker cpstep fails with Python venv inside project directory #230.gitignoreto be copied to container #1490