Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Excerpt
hiddentrue

Knowledge base concerning github actions

HTTPS with a Personal Access Token

https://docs.github.com/en/packages/managing-github-packages-using-github-actions-workflows/publishing-and-installing-a-package-with-github-actions https://docs.github.com/en/actions/using-jobs/running-jobs-in-a-container#example-defining-credentials-for-a-container-registry

I have only tested with the most simple use case - publishing containers for that repo only (which is what the example in the preceding link shows).

...

Use the default provided ${{ secrets.GITHUB_TOKEN }} provided when you run an action on your repo

...

Dual Work-Personal SSH Accounts

Nothing changes for your personal account (assuming it already exists)

For your work account:

  1. Create an ssh key and save it to a named file

Code Block
$ ssh-keygen -t rsa -C "bob-work@gmail.com"
> Enter file in which to save the key (/home/bob/.ssh/id_rsa): /home/bob/work_rsa.pub
  1. Upload the ssh key to your github work account

  2. Create a new github.com configuration in ~/.ssh/config

Code Block
Host work
    Hostname github.com
    User git
    IdentityFile ~/.ssh/work
  1. Test the ssh key

Code Block
$ ssh -T git@github.com
Hi bob! You've successfully authenticated, but GitHub does not provide shell access.
$ ssh -T git@work
Hi bob-work! You've successfully authenticated, but GitHub does not provide shell access.
  1. Clone

Code Block
$ git clone git@github.com:bob/my_open_source_repo.git
$ git clone git@work:mercury/thirteenth-floor.git