Skip to content

Commit 98ebb32

Browse files
committed
fix: use op token
1 parent 7f06b77 commit 98ebb32

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/image.yaml

+11-1
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,22 @@ jobs:
1818
with:
1919
submodules: true
2020
lfs: true
21+
- name: Setup 1Password Connect
22+
uses: 1password/load-secrets-action/configure@v1
23+
with:
24+
service-account-token: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
25+
- name: Setup
26+
uses: 1password/load-secrets-action@v2
27+
with:
28+
export-env: true
29+
env:
30+
GHCR_TOKEN: "op://Github Actions/ghcr/credential"
2131
- name: Login to GitHub Container Registry
2232
uses: docker/login-action@v3
2333
with:
2434
registry: ghcr.io
2535
username: ${{ github.actor }}
26-
password: ${{ secrets.GITHUB_TOKEN }}
36+
password: ${{ env.GHCR_TOKEN }}
2737
-
2838
# Add support for more platforms with QEMU (optional)
2939
# https://github.com/docker/setup-qemu-action

0 commit comments

Comments
 (0)