Skip to content

Commit

Permalink
ci: use GITHUB_TOKEN not PATs
Browse files Browse the repository at this point in the history
  • Loading branch information
ryantk committed Jan 31, 2024
1 parent 13718f2 commit 829eb17
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build-and-push-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
schedule:
- cron: '0 0 * * 1'
workflow_dispatch:
push:
branches:
- use-github-token

jobs:
build_and_push:
Expand All @@ -16,8 +19,8 @@ jobs:
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ secrets.GHCR_USERNAME }}
password: ${{ secrets.GHCR_TOKEN }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
Expand Down

0 comments on commit 829eb17

Please sign in to comment.