From Namespace Runners
No additional setup required If your GitHub Actions run on Namespace, your jobs can already access your workspace. Each job contains a short-lived workload identity token which grants seamless access to your Namespace resources. For example, you can download artifacts without additional setup steps:From GitHub Runners
When running your jobs outside Namespace, you can still easily access your workspace. Namespace federates with GitHub using OpenID Connect to generate short-lived access tokens. After a one-time setup, your workflows can access Namespace indefinitely, without relying on pre-shared keys which can be more easily compromised.Install the Namespace GitHub application
- Open the Dashboard.
- On the Federation page, click on Connect Organization under Associated GitHub organizations section.
- In the pop-up window, select which organization to connect to Namespace.
- Finally, choose if you want to install the app to all repositories or just a selection.
Grant federation permissions to your workflow
To allow GitHub Actions to authenticate with Namespace, you need to update your workflow definition.
In particular, you need to grant the permission In this case, all the jobs within the workflow may use Namespace.If you need to authorize only a single job, set the permission
within that job. For example:
id-token: write to federate with external cloud providers using OpenID Connect.You can add the permission at the workflow level:Initialize access to Namespace
After granting these permissions, simply use the
namespacelabs/nscloud-setup action.
Subsequent steps can now access Namespace resources.