Skip to content

Commit 348d81a

Browse files
committed
fix: use PAT instead of github token
1 parent cef670d commit 348d81a

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.github/workflows/docker-publish.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,22 @@ name: Docker
77

88
on:
99
schedule:
10-
- cron: '21 21 * * *'
10+
- cron: "21 21 * * *"
1111
push:
12-
branches: [ "main" ]
12+
branches: ["main"]
1313
# Publish semver tags as releases.
14-
tags: [ 'v*.*.*' ]
14+
tags: ["v*.*.*"]
1515
pull_request:
16-
branches: [ "main" ]
16+
branches: ["main"]
1717

1818
env:
1919
# Use docker.io for Docker Hub if empty
2020
REGISTRY: ghcr.io
2121
# github.repository as <account>/<repo>
2222
IMAGE_NAME: ${{ github.repository }}
2323

24-
2524
jobs:
2625
build:
27-
2826
runs-on: ubuntu-latest
2927
permissions:
3028
contents: read
@@ -43,7 +41,7 @@ jobs:
4341
if: github.event_name != 'pull_request'
4442
uses: sigstore/cosign-installer@59acb6260d9c0ba8f4a2f9d9b48431a222b68e20 #v3.5.0
4543
with:
46-
cosign-release: 'v2.2.4'
44+
cosign-release: "v2.2.4"
4745

4846
# Set up BuildKit Docker container builder to be able to build
4947
# multi-platform images and export cache
@@ -59,7 +57,7 @@ jobs:
5957
with:
6058
registry: ${{ env.REGISTRY }}
6159
username: ${{ github.actor }}
62-
password: ${{ secrets.GITHUB_TOKEN }}
60+
password: ${{ secrets.KAN_PAT }}
6361

6462
# Extract metadata (tags, labels) for Docker
6563
# https://github.com/docker/metadata-action

0 commit comments

Comments
 (0)