Practical guide to using the new GitHub Actions agentic workflows with read-only permissions and configurable spending limits.
GitHub has released its Agentic Workflows to general availability, providing a way to run code agents within GitHub Actions for tasks like issue triage or CI failure analysis. The system starts with read-only permissions and separates write operations into independent jobs with their own tokens.
This separation has important limitations. According to the project FAQ, protections do not automatically extend to direct write permissions or custom jobs added by the workflow author. Actual security depends on how each workflow is configured.
What you need
Before you begin, make sure you have access to GitHub Free, Team, or Enterprise on github.com. If you plan to use the default Copilot CLI engine, you'll need an active Copilot license. For self-hosted runners with Actions Runner Controller, prepare a Kubernetes cluster with Docker-in-Docker support.
- GitHub Free, Team, or Enterprise account
- Copilot license (if using the default agent)
- Basic familiarity with GitHub Actions and YAML
- Optional: Kubernetes cluster for ARC with DinD
Steps to configure your first agentic workflow
- Create a Markdown file in your repository describing the task in natural language, with YAML frontmatter for basic configuration.
- Define budget limits: the default value is 1,000 AIC ($10) per run, but according to the official documentation, you can adjust it based on the task's complexity.
- Add an Environment protection rule in GitHub if you want a reviewer to approve before the write job executes.
- Run
gh aw forecastto estimate monthly AI credit spending, including threat detection. - Deploy the workflow and monitor the first few runs to adjust timeouts and turn limits.

Budget and security settings
AI credits cost $0.01 each. By default, the system allows 5,000 daily AICs, 400 AICs per threat detection run, and a 20-minute timeout in the agent step. According to a practical analysis by Sascha Mirow-Stanitzok, the default budget is excessive for simple tasks like issue triage.
In his case, he limited runs to 100 AICs, 15 turns, and 10 minutes. He also warns that instructing the agent to ignore instructions in issue text is not sufficient protection on its own, especially in workflows that modify code or open pull requests.
Comparison with GitLab Duo Agent Platform
GitLab takes a different approach with its Duo Agent Platform workflows. Runners operate under a composite identity that combines a service account with the human user initiating the request. Triggers like mentions or assignments must come from a human, which prevents one workflow from initiating another without manual intervention.
This architectural difference is relevant if you are concerned about uncontrolled task chaining. In GitHub, the responsibility for preventing this scenario lies in how you configure the permissions and protection rules for each workflow.

The project FAQ recommends continuing to use conventional Actions for reproducible builds and tests, reserving agentic workflows for tasks that require interpretation or generation. The project has been available in public preview since June 2026 and is now generally available for all GitHub plans.
Original source: infoq.com
Article generated with AI.larebelion



Publicar un comentario