Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 20, 2025

The README lacked instructions for configuring repository secrets needed to run agentic workflows with Copilot and other engines, as well as guidance on creating and debugging workflows.

Changes

  • Quick reference table: Maps workflow capabilities (Copilot, cross-repo, Projects v2) to required secrets
  • Setup guide: PAT creation → secret configuration via GitHub website UI (3 step process)
  • Workflow creation guide: Instructions for using the create-agentic-workflow custom agent to generate new workflows
  • Workflow debugging guide: Instructions for using the debug-agentic-workflow custom agent to analyze and fix workflow issues

Creating Workflows

Users can now create workflows through the GitHub web UI:

  1. Go to repository Actions tab
  2. Click Create new agentic task
  3. Select create-agentic-workflow agent
  4. Describe the desired workflow
  5. Agent generates the workflow file

Debugging Workflows

Users can debug failed workflows:

  1. Go to repository Actions tab
  2. Click Create new agentic task
  3. Select debug-agentic-workflow agent
  4. Provide GitHub URL to failed workflow run
  5. Agent analyzes logs and suggests fixes

All instructions use the GitHub website interface exclusively, making it accessible to users who only use GitHub.com. The README is streamlined and concise, focusing on getting started quickly without detailed technical reference material.

Original prompt

Update the README file with instructions on how to configure this repository for agentic workflows. Focus on a clear list of steps to configure tokens for copilot.

see https://github.com/githubnext/gh-aw/blob/main/docs/src/content/docs/reference/tokens.md


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Update README with agentic workflows configuration instructions Add token configuration documentation for agentic workflows Dec 20, 2025
Copilot AI requested a review from pelikhan December 20, 2025 19:03
README.md Outdated

Follow these steps to set up GitHub Copilot in your agentic workflows:

#### 1. Install the GitHub Agentic Workflows CLI
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot this step is preconfigured, remove

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed CLI installation step in commit 5a3291c

README.md Outdated
./install-gh-aw.sh
```

#### 2. Create a Personal Access Token for Copilot
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot this step is mandatory, move up as the first thing to do

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved PAT creation to be step 1 in commit 5a3291c

README.md Outdated
- **Permissions**: Select "Copilot Requests" (required)
3. Generate the token and copy it

#### 3. Set the Copilot Token as a Repository Secret
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot give instructions using the github web site, not the gh cli

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated to use GitHub website instructions for setting secrets in commit 5a3291c

README.md Outdated
echo "YOUR_COPILOT_PAT" | gh aw secrets set COPILOT_GITHUB_TOKEN
```

#### 4. (Optional) Configure Additional Tokens
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot do not give instructions using gh cli the audience uses dotcom only

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replaced gh CLI instructions with GitHub website steps in commit 5a3291c

README.md Outdated
- For Organization-owned Projects (option 1): Classic PAT with `project` + `read:org` scopes
- For Organization-owned Projects (option 2): Fine-grained PAT with explicit Organization access + Projects: Read+Write

### Security Best Practices
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot remove section

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed Security Best Practices section in commit 5a3291c

…e CLI installation and security section

Co-authored-by: pelikhan <[email protected]>
README.md Outdated
- For Organization-owned Projects (option 1): Classic PAT with `project` + `read:org` scopes
- For Organization-owned Projects (option 2): Fine-grained PAT with explicit Organization access + Projects: Read+Write

### Example Workflow Using Copilot
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot remove section

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed "Example Workflow Using Copilot" section in commit 1f45b88

README.md Outdated

This will generate `.github/workflows/copilot-helper.lock.yml`, which is the actual GitHub Actions workflow file that will run.

## Next Steps
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot remove this section

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed "Next Steps" section in commit 1f45b88

```

This will generate `.github/workflows/copilot-helper.lock.yml`, which is the actual GitHub Actions workflow file that will run.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot add a section that tells the user how to use the "create new agentic task", select the "create-agentic-workflow" custom agent and ask to create a new workflow. Also add section on how to use the debug-agentic-workflow + github url to improve debug agents.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added "Creating Workflows" section with create-agentic-workflow agent instructions and "Debugging and Improving Workflows" section with debug-agentic-workflow + GitHub URL instructions in commit 1f45b88

Copilot AI changed the title Add token configuration documentation for agentic workflows Add token configuration and workflow creation documentation for agentic workflows Dec 20, 2025
Copilot AI requested a review from pelikhan December 20, 2025 19:24
README.md Outdated
- **For agent assignment operations**: Create a secret named `GH_AW_AGENT_TOKEN`
- **For GitHub Projects v2 operations**: Create a secret named `GH_AW_PROJECT_GITHUB_TOKEN`

### Token Types and Permissions
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot remove section

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed "Token Types and Permissions" section in commit 344a114

Copilot AI requested a review from pelikhan December 20, 2025 19:30
@pelikhan pelikhan marked this pull request as ready for review December 20, 2025 19:36
@pelikhan pelikhan merged commit 2466cc2 into main Dec 20, 2025
@pelikhan pelikhan deleted the copilot/update-readme-configure-agentic-workflows branch December 20, 2025 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants