You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+31Lines changed: 31 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,12 +19,43 @@ Note: Since the action is not interactive, it invokes the CLI via `clojure` rath
19
19
20
20
**Optional:** Any java opts (eg `-Xmx512m`)
21
21
22
+
**Default:** none are set
23
+
24
+
### `ssh-key`
25
+
26
+
**Optional:** A GitHub secret that has the The SSH key needed to access code from other private repositories (eg `${{ secrets.SSH_PRIVATE_KEY }}`)
27
+
28
+
**Default:** no SSH agent is started or key used
29
+
30
+
### Why an SSH key?
31
+
When running this action to you might need to fetch dependencies from your other private repositories.
32
+
33
+
GitHub Actions only have access to the repository they run for. To access additional private repositories you need to provide an SSH key with sufficient access privileges.
34
+
35
+
_Please note that there are some other actions on the GitHub marketplace that enable setting up an SSH agent. Our experience is that the mechanisms to support SSH agent interplay between actions is complex and complexity brings risks. We think that it is more straightforward and secure to have this action support the feature within its own scope. We will continue to review this choice as the Docker options improve and the GitHub environment matures._
36
+
37
+
**For security purposes, we do not expose the SSH agent outside of this action.**
38
+
39
+
### SSH Setup
40
+
1. Create an SSH key with sufficient access privileges. For security reasons, don't use your personal SSH key but set up a dedicated one for use in GitHub Actions. See the [Github documentation](https://developer.github.com/v3/guides/managing-deploy-keys/) for more support.
41
+
1. Make sure you **don't have a passphrase** set on the private key.
42
+
1. In your repository, go to the _Settings > Secrets_ menu and create a new secret. In this example, we'll call it `SSH_PRIVATE_KEY`. Put the contents of the private SSH key file into the contents field.
43
+
1. This key must start with `-----BEGIN ... PRIVATE KEY-----`, consist of many lines and ends with `-----END ... PRIVATE KEY-----`.
44
+
22
45
## Example usage - default, to run `:test` alias
23
46
24
47
```yaml
25
48
uses: actions/tools.deps-builder@v1
26
49
```
27
50
51
+
## Example usage - pass an SSH key to run the tests
0 commit comments