Skip to content

Commit 9b08071

Browse files
authored
Merge pull request #53 from onkernel/mason/ga-release
ci: fix private key processing in MCP login
2 parents 671c4bb + 6b03e61 commit 9b08071

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
@@ -39,12 +39,17 @@ jobs:
3939
- name: Login to MCP Registry
4040
run: |
4141
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" \
42+
SEED_HEX="$(
43+
{
44+
printf '%s\n' '-----BEGIN PRIVATE KEY-----'
45+
printf '%s\n' "$(printf '%s' "$KEY_B64" | tr -d ' \r\n')"
46+
printf '%s\n' '-----END PRIVATE KEY-----'
47+
} \
4448
| openssl pkey -in /dev/stdin -noout -text 2>/dev/null \
4549
| awk '/priv:/{p=1;next}/pub:/{p=0}p' \
4650
| tr -d ' :\n'
4751
)"
52+
./mcp-publisher login dns --domain onkernel.com --private-key "$SEED_HEX"
4853
4954
- name: Publish to MCP Registry
5055
run: ./mcp-publisher publish

0 commit comments

Comments
 (0)