Skip to content
GitHub Agentic Workflows

ProjectOps

ProjectOps helps teams run project operations with less manual upkeep.

It builds on GitHub Projects, which provides the core planning and tracking layer for issues and pull requests, and adds support for judgment-heavy decisions.

ProjectOps reads project state with GitHub tools and applies changes through safe-outputs. It is most useful when you need context-aware routing and field updates. For simple, rule-based transitions, built-in automations are usually enough.

In practice, this gives teams faster triage decisions, cleaner board state, stronger planning signals across related issues and pull requests, and more decision-ready status updates.

  1. A Project board and copy the project URL. See Creating a project.
  2. A Project token (PAT or GitHub App token). See Project Token Authentication.
  3. A field contract (for example: Status, Priority, Team, Iteration, Target Date). See Understanding fields.

Project operations need additional authentication because the default GITHUB_TOKEN is repository-scoped and cannot access Projects APIs for read/write project operations.

If your project is user-owned, use a PAT and store it as a repository secret.

  • Use a classic PAT.
  • Required scopes:
    • project
    • repo (if private repositories are involved)

If your project is organization-owned, use a fine-grained PAT or a GitHub App token and store it as a repository secret.

  • Use a fine-grained PAT.
  • Configure:
    • Resource owner: select the organization this project belongs to.
    • Repository access: select the repositories that will run the workflow.
    • Repository permissions: Contents: Read, and optionally Issues: Read / Pull requests: Read (or Read and write).
    • Organization permissions: Projects: Read (or Read and write).

You can also use a GitHub App token if your organization standardizes on App-based auth. For organization projects, make sure the app has Organization Projects: Read and write permission. See Using a GitHub App for Authentication.

Use separate read and write tokens so you can enforce least privilege:

  • GH_AW_READ_PROJECT_TOKEN for tools.github + projects toolset.
  • GH_AW_WRITE_PROJECT_TOKEN for safe-output writes like update-project.
Terminal window
gh aw secrets set GH_AW_READ_PROJECT_TOKEN --value "<read-token>"
gh aw secrets set GH_AW_WRITE_PROJECT_TOKEN --value "<write-token>"

A practical way to adopt ProjectOps is to start with read-only MCP/GitHub analysis, then gradually add targeted write operations as workflow confidence and policy maturity increase.

ProjectOps combines two capability layers:

  • GitHub tools (tools.github + projects toolset) for reading and analyzing project state.
  • Safe outputs for controlled write operations, including:
    • update-project — use when you want to add issues/PRs to a project or update fields (status, priority, owner, dates, custom values).
    • create-project-status-update — use when you want a stakeholder-facing summary in the project Updates tab (weekly health, blockers, risks, next decisions).
    • create-project — use when automation needs to bootstrap a new board for an initiative or team.
    • add-comment — use when you want to explain routing decisions or request missing info on the triggering issue/PR.

Let’s look at examples of these in action, starting with the Project Board Summarizer (read-only analysis), then moving to controlled write operations with the Project Board Maintainer example.

Let’s start with a simple agentic workflow that reviews project board state and generates a summary without applying any changes.

---
on:
schedule:
- cron: "0 14 * * 1"
permissions:
contents: read
actions: read
tools:
github:
github-token: ${{ secrets.GH_AW_READ_PROJECT_TOKEN }}
toolsets: [default, projects]
---
# Project Board Summarizer
Review [project 1](https://github.com/orgs/my-mona-org/projects/1).
Return only:
- New this week
- Blocked + why
- Stale/inconsistent fields
- Top 3 human actions
Read-only. Do not update the project.

Our project board might look like this:

Example GitHub Projects board used for Project Board Summarizer

Running the agentic workflow generates a concise summary of project status. We can find this in the GitHub Actions agent run output:

Workflow summary output generated by Project Board Summarizer

Let’s write an agentic workflow that applies changes to a project board based on issue content and context. This workflow will run on new issues, analyze the issue and project state, and decide whether to add the issue to the project board and how to set key fields.

---
on:
issues:
types: [opened]
permissions:
contents: read
actions: read
tools:
github:
github-token: ${{ secrets.GH_AW_READ_PROJECT_TOKEN }}
toolsets: [default, projects]
safe-outputs:
update-project:
github-token: ${{ secrets.GH_AW_WRITE_PROJECT_TOKEN }}
project: https://github.com/orgs/my-mona-org/projects/1
max: 1
add-comment:
max: 1
---
# Intelligent Issue Triage
Analyze each new issue in this repository and decide whether it belongs on the project board.
Set structured fields only from allowed values:
- Status: Needs Triage | Proposed | In Progress | Blocked
- Priority: Low | Medium | High
- Team: Platform | Docs | Product
Post a short comment on the issue explaining your routing decision and any uncertainty.

Once this workflow is compiled and running, it will automatically triage new issues with controlled write operations to the project board and issue comments.

Let’s create a new issue to see this in action:

Workflow summary output generated by Project Board Maintainer

The Project Board Maintainer analyzes the issue content and context, then decides to add it to the project board with specific field values (for example, Status: Proposed, Priority: Medium, Team: Docs). It also posts a comment on the issue explaining the decision and any uncertainty.

Workflow summary output generated by Project Board Maintainer

In production, keep the loop simple: issue arrives, agent classifies and proposes/sets fields, safe outputs apply allowed writes, and humans review high-impact changes and exceptions.

  • Auto-apply low-risk hygiene (add item, set initial status/team).
  • Suggest-only commitments (priority/date/iteration changes).
  • Always gate cross-team or cross-repo impact.
  • Use max caps, allowlists, and explicit approvals to control writes.
  • Keep single-select values exact to avoid field drift.
  • If you only need simple event-based transitions, prefer built-in GitHub Project workflows.