Use secrets.GITHUB_TOKEN to push images instead of a PAT
This commit is contained in:
parent
56efba66f5
commit
140a40acaf
1 changed files with 3 additions and 2 deletions
5
.github/workflows/docker.yml
vendored
5
.github/workflows/docker.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue