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: Sources/swift-container-plugin/Documentation.docc/authentication.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,3 +37,20 @@ machine auth.docker.io
37
37
login mydockerid
38
38
password dckr_pat_B3FwrU...
39
39
```
40
+
41
+
### GitHub Container Registry
42
+
43
+
> GitHub Container Registry only supports authentication using a [Personal Access Token (classic)](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry#authenticating-to-the-container-registry).
44
+
> A fine-grained personal access token cannot be used.
45
+
46
+
1. Log into GitHub and [generate a Personal Access Token (classic)](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-personal-access-token-classic) for Swift Container Plugin.
47
+
48
+
2.**Select the *write:packages* scope.**
49
+
50
+
3. Copy the token and add it, together with your GitHub username, to your `.netrc` file:
0 commit comments