I think we might need a bit more context, since you can do this via the GitHub console. Have you created the GitHub environment via a Pulumi project, using the GitHub provider? And you want to get the key from the outputs? Perhaps you can share a snippet of your code.