Skip to content

Conversation

@hknutsen
Copy link
Member

Take inspiration from @sefornes and "reduce the magic" by moving the script for starting the SSH agent to a separate step.

The SSH_PRIVATE_KEY secret must be set as a job-level environment variable before it can be used in an if: conditional (https://docs.github.com/en/actions/how-tos/write-workflows/choose-what-workflows-do/use-secrets#using-secrets-in-a-workflow).

Take inspiration from @sefornes and "reduce the magic" by moving the script for starting the SSH agent to a separate step.

The `SSH_PRIVATE_KEY` secret must be set as a job-level environment variable before it can be used in an `if:` conditional (https://docs.github.com/en/actions/how-tos/write-workflows/choose-what-workflows-do/use-secrets#using-secrets-in-a-workflow).
@hknutsen
Copy link
Member Author

Need to test that this actually works as before, both with and without an SSH_PRIVATE_KEY.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants