Github Action Container Copilot for Automation
Has anyone explored using your copilot API as a means to use it during Github Actions execution? I have Github Copilot license (Copilot Business) and I do need the chat API interface right in the github Actions...
If anyone is getting ahead of me in an implementation, I'm planning to use https://docs.github.com/en/actions/how-tos/write-workflows/choose-where-workflows-run/run-jobs-in-a-container and use the container in the action for any automation needed... as long as it uses the github.com/copilot interface...
A couple of considerations here.
Copilot Business itself is primarily an IDE augmentation tool and does not expose a general purpose API for arbitrary automation inside GitHub Actions. If you need programmatic AI behavior inside workflows, you would typically integrate against an LLM API directly rather than relying on Copilot’s interactive interface.
If the goal is to:
• Generate code during CI • Perform automated review comments • Summarize diffs • Enforce policy checks
You can run a container based action and call an external LLM API using a securely stored secret. The workflow would look like:
Trigger on PR or push
Checkout repo
Run containerized action
Call LLM API using repo scoped secret
Post results as PR comment or status check
Running jobs in a container is fine, but the key question is authentication and rate limiting. You’ll want to:
• Store API keys as encrypted secrets • Restrict workflow permissions • Avoid exposing tokens in logs
If your goal is deeper automation such as policy driven code modifications, it may also help to define clearly whether this should run synchronously in CI or asynchronously via a separate service.
Happy to discuss the specific automation outcome you’re aiming for.