Skip to content

Commit 671c4bb

Browse files
authored
Merge pull request #52 from onkernel/mason/ga-release
ci: fix MCP private key handling in workflow
2 parents 1a0d020 + 76f934a commit 671c4bb

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/publish-mcp.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,13 @@ jobs:
3838
3939
- name: Login to MCP Registry
4040
run: |
41-
echo "${{ secrets.MCP_PRIVATE_KEY }}" > key.pem
42-
./mcp-publisher login dns -domain onkernel.com --private-key $(openssl pkey -in key.pem -noout -text | grep -A3 "priv:" | tail -n +2 | tr -d ' :\n')
41+
KEY_B64='${{ secrets.MCP_PRIVATE_KEY }}'
42+
./mcp-publisher login dns --domain onkernel.com --private-key "$(
43+
printf '-----BEGIN PRIVATE KEY-----\n%s\n-----END PRIVATE KEY-----\n' "$KEY_B64" \
44+
| openssl pkey -in /dev/stdin -noout -text 2>/dev/null \
45+
| awk '/priv:/{p=1;next}/pub:/{p=0}p' \
46+
| tr -d ' :\n'
47+
)"
4348
4449
- name: Publish to MCP Registry
4550
run: ./mcp-publisher publish

0 commit comments

Comments
 (0)