mirror of
https://github.com/nektos/act.git
synced 2026-04-26 09:25:54 +03:00
[GH-ISSUE #1131] Secrets passed per env file can not be made available in SSH action #638
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#638
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 @dschuessler on GitHub (Apr 18, 2022).
Original GitHub issue: https://github.com/nektos/act/issues/1131
I am not sure whether to post it here or over at https://github.com/appleboy/ssh-action/issues because I don't know on which side the issue lies.
System information
act: ubuntu:full-20.04actversion: act version 0.2.26Steps to reproduce
.github/workflows/test.yml:test.envfile in the project directory with the following content. Replace theHOSTandSSH_USERNAMEvariable with the credentials of a server you have access to.~/.ssh/id_rsawith the correct path to your SSH key for your server.):Expected behaviour
The secrets
GH_USERandGH_PASSWORDare available in the script passed tossh-action.Actual behaviour
The secrets
GH_USERandGH_PASSWORDare not available in the script.actshows the expected behavior though when passing the missing secrets via command line flags:@github-actions[bot] commented on GitHub (May 19, 2022):
Issue is stale and will be closed in 14 days unless there is new activity
@kmai commented on GitHub (May 19, 2022):
just a thought: you're using
--env-fileeven though you refer to them as secrets in the workflow@github-actions[bot] commented on GitHub (Jun 19, 2022):
Issue is stale and will be closed in 14 days unless there is new activity