X Tutup
Skip to content

Commit 2f45173

Browse files
committed
Publish docs site using a deploy key instead of PAT
I'd like to decommission SITE_GITHUB_TOKEN as it's a PAT that has write access to all my `github/*` repositories. Instead, I've created a deploy key that only has access to `github/cli.github.com`. ssh-keygen -t ed25519 -C "gh docs push" -N "" -f ~/.ssh/gh-docs-publish gh repo -R github/cli.github.com deploy-key add ~/.ssh/gh-docs-publish.pub # testing: GIT_SSH_COMMAND='ssh -i $HOME/.ssh/gh-docs-publish' git push ...
1 parent 3b20dfc commit 2f45173

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/releases.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
repository: github/cli.github.com
3434
path: site
3535
fetch-depth: 0
36-
token: ${{secrets.SITE_GITHUB_TOKEN}}
36+
ssh-key: ${{secrets.SITE_SSH_KEY}}
3737
- name: Update site man pages
3838
env:
3939
GIT_COMMITTER_NAME: cli automation

0 commit comments

Comments
 (0)
X Tutup