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
+14-5Lines changed: 14 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,10 +89,12 @@ jobs:
89
89
90
90
### GitHub Container Registry
91
91
92
-
To authenticate against the [GitHub Container Registry](https://docs.github.com/en/packages/getting-started-with-github-container-registry),
93
-
you will need to [enable it for your user or organization account](https://docs.github.com/en/packages/guides/enabling-improved-container-support)
94
-
and create a new [personal access token (PAT)](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token)
95
-
with the [appropriate scopes](https://docs.github.com/en/packages/getting-started-with-github-container-registry/migrating-to-github-container-registry-for-docker-images#authenticating-with-the-container-registry).
92
+
To use the [GitHub Container Registry](https://docs.github.com/en/packages/getting-started-with-github-container-registry),
93
+
you need to [enable this feature for your personal or organization account](https://docs.github.com/en/packages/guides/enabling-improved-container-support).
94
+
95
+
To [authenticate against it](https://docs.github.com/en/packages/guides/migrating-to-github-container-registry-for-docker-images#authenticating-with-the-container-registry),
96
+
use the [`GITHUB_TOKEN`](https://docs.github.com/en/actions/reference/authentication-in-a-workflow) for the best
97
+
security and experience.
96
98
97
99
```yaml
98
100
name: ci
@@ -111,9 +113,16 @@ jobs:
111
113
with:
112
114
registry: ghcr.io
113
115
username: ${{ github.repository_owner }}
114
-
password: ${{ secrets.CR_PAT }}
116
+
password: ${{ secrets.GITHUB_TOKEN }}
115
117
```
116
118
119
+
You may need to manage write and read access of GitHub Actions for repositories in the container settings:
You can also use a [personal access token (PAT)](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token)
124
+
with the [appropriate scopes](https://docs.github.com/en/packages/getting-started-with-github-container-registry/migrating-to-github-container-registry-for-docker-images#authenticating-with-the-container-registry).
0 commit comments