Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish docs site using a deploy key instead of PAT #4320

Merged
merged 1 commit into from
Sep 13, 2021
Merged

Conversation

mislav
Copy link
Contributor

@mislav mislav commented Sep 13, 2021

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 ...

Ref. #4302

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 ...
@cliAutomation cliAutomation added this to Needs review 🤔 in The GitHub CLI Sep 13, 2021
The GitHub CLI automation moved this from Needs review 🤔 to Needs to be merged 🎉 Sep 13, 2021
@mislav mislav merged commit d7f7a98 into trunk Sep 13, 2021
The GitHub CLI automation moved this from Needs to be merged 🎉 to Pending Release 🥚 Sep 13, 2021
@mislav mislav deleted the site-ssh-key branch September 13, 2021 17:43
@github-actions github-actions bot moved this from Pending Release 🥚 to Done 💤 in The GitHub CLI Oct 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
The GitHub CLI
  
Done 💤
Development

Successfully merging this pull request may close these issues.

None yet

2 participants