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
1 changed files with 3 additions and 2 deletions

View File

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