Skip to content

Setup API tokens #2

@lakruzz

Description

@lakruzz

Now we will set up service tokens that have all permissions, so we can go all CLI from here.

Particularly this entry in the documentation about Service tokens describes what we are trying to accomplish:

Create Service Tokens

Create an admin Token. (Settings >> Service tokens)

Capture Token ID and Token (you will never see the Token again - so if you forget start over.

Give the token access to everything in your organization

image
Store the token and token id as secrets on GitHub

You need to store your token id and token in multiple places:

GitHub Action secrets

Go to the Secrets and variables in your repository (Settings >> Secrets and variables).

Click on actions and create two Repository secrets

image

GitHub Codespaces

Click on Codespaces and create two Repository secrets

image

Keep them for yourself on your PC

You may want to use this token and token id set elsewhere, so store them in your personal password vault too.


Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions