0

This question is about the GitHub CoPilot Coding Agent (not the in-IDE CoPilot) - specifically how to pass secrets to the runner - based on the docs I've tried adding the OPENAI_API_KEY both at repo and env level secrets (see screenshot) - repo secret.

Relevant GitHub CoPilot agent-session messages below:


The OPENAI_API_KEY is listed in COPILOT_AGENT_INJECTED_SECRET_NAMES, which means it's available in the GitHub repository secrets
The current workflow already has the configuration to use it via ${{ secrets.OPENAI_API_KEY }}
...
However, in the current execution context (the copilot agent environment), the secret is not directly exposed as an environment variable for security reasons.
...

How and where do we pass secrets to the GitHub CoPilot Coding Agent? Thanks

1 Answer 1

0

Add workflow_run to the GitHub Actions .yml, the Coding Agent ignores workflow_call or workflow_dispatch

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.