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
If your package depends on private packages registered in a private registry, you need to handle authentication to that registry and the package repositories in a fully automated way, since you can't manually enter credentials in a CI environment.
4
-
This action will deal with all of that for you, all you need is an SSH private key.
3
+
Handles Git authentication to private Julia packages and registries such that they can be used within a CI environment. After running this action any GitHub HTTPS request made by Pkg will be automatically authenticated.
5
4
6
-
```yml
5
+
Currently, this action only support private packages hosted within GitHub.
6
+
7
+
Access to private packages requires you to create a [SSH private key](https://docs.github.com/en/authentication/connecting-to-github-with-ssh) or a [personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens) (with the proper repository access) in GitHub.
8
+
9
+
## SSH Access
10
+
11
+
```yaml
7
12
jobs:
8
13
test:
9
14
runs-on: ubuntu-latest
10
15
steps:
11
16
- uses: actions/checkout@v4
12
17
- uses: julia-actions/setup-julia@v2
13
18
with:
14
-
version: 1
19
+
version: "1"
15
20
- uses: julia-actions/cache@v2
16
21
- uses: julia-actions/add-julia-registry@v2
17
22
with:
18
-
key: ${{ secrets.SSH_KEY }}
19
23
registry: MyOrg/MyRegistry
24
+
ssh-key: ${{ secrets.SSH_KEY }}
20
25
- uses: julia-actions/julia-runtest@v1
21
26
```
22
27
23
-
This action does the following:
28
+
When using the SSH protocol this action performs the following steps:
0 commit comments