Use secrets.GITHUB_TOKEN to push images instead of a PAT

This commit is contained in:
Frédéric Guillot 2023-03-27 21:21:07 -07:00
parent 56efba66f5
commit 140a40acaf

View file

@ -1,5 +1,4 @@
name: Docker
permissions: read-all
on:
schedule:
- cron: '0 1 * * *'
@ -8,6 +7,8 @@ on:
- '*.*.*'
jobs:
docker-images:
permissions:
packages: write
runs-on: ubuntu-latest
steps:
- name: Checkout
@ -60,7 +61,7 @@ jobs:
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Login to Quay Container Registry
uses: docker/login-action@v2