diff options
author | 2021-04-05 17:56:37 +0300 | |
---|---|---|
committer | 2021-04-05 17:56:37 +0300 | |
commit | 99b09077c17e01545a5a60236c9cb8e78c149c5f (patch) | |
tree | 96d6e52ed2ebe323308f2f66eba806208e28699e /.github/workflows | |
parent | Merge pull request #471 from python-discord/policy-documents (diff) |
Migrate GHCR_TOKEN -> GITHUB_TOKEN in Docker build action
GITHUB_TOKEN has now enough permissions to be used for pushing to GHCR, so we don't need PAT anymore. Also, use `repository_owner` instead of the secret of username.
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/build.yaml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 873bcda4..ab7321de 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -38,8 +38,8 @@ jobs: uses: docker/login-action@v1 with: registry: ghcr.io - username: ${{ secrets.GHCR_USER }} - password: ${{ secrets.GHCR_TOKEN }} + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} # Build the container, including an inline cache manifest to # allow us to use the registry as a cache source. |