Skip to content

Commit bb63d64

Browse files
author
Florin Stan
committed
Refactor Buf login command in GitHub Actions workflow to improve token handling
1 parent 565da4f commit bb63d64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/buf-push.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ jobs:
1717
with:
1818
github_token: ${{ secrets.GITHUB_TOKEN }} # Optional: Recommended for fetching private dependencies
1919
- name: Log in to Buf Schema Registry
20-
run: buf registry login ${{ secrets.BUF_USER }} --token-stdin < ${{ secrets.BUF_TOKEN }}
20+
run: echo ${{secrets.BUF_TOKEN}} | buf registry login ${{ secrets.BUF_USER }} --token-stdin
2121
- name: Push schema to Buf Schema Registry
2222
run: buf push

0 commit comments

Comments
 (0)