Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 20, 2025

The README previously had minimal token setup instructions. Users needed to navigate to external documentation to understand token requirements and creation steps.

Changes

  • Getting started with Copilot: Complete end-to-end setup for COPILOT_GITHUB_TOKEN first (token creation + adding to repository) to help users get started quickly

  • Interactive checklists: All step-by-step instructions use checkboxes (- [ ]) so users can track their progress as they complete each setup step

  • Advanced tokens section: Additional tokens (GH_AW_GITHUB_TOKEN, GH_AW_PROJECT_GITHUB_TOKEN, GH_AW_AGENT_TOKEN) organized in collapsible sections for users with advanced workflow needs

  • Detailed token creation instructions: Step-by-step guides for each token type with specific permissions required:

    • Copilot token: Account permissions → Copilot Requests
    • Cross-repo token: Repository permissions for contents, issues, PRs
    • Projects token: Distinctions between user-owned (Classic PAT required) vs organization-owned projects
    • Agent token: Repository permissions for Actions, Contents, Issues, Pull requests
  • UI-only workflow: Simplified token management through GitHub Settings UI (no CLI instructions)

The comprehensive token documentation link remains for advanced use cases.

Custom agent used: create-agentic-workflow
Design agentic workflows using GitHub Agentic Workflows (gh-aw) extension with interactive guidance on triggers, tools, and security best practices.

Custom agent used: create-agentic-workflow
Design agentic workflows using GitHub Agentic Workflows (gh-aw) extension with interactive guidance on triggers, tools, and security best practices.

Custom agent used: create-agentic-workflow
Design agentic workflows using GitHub Agentic Workflows (gh-aw) extension with interactive guidance on triggers, tools, and security best practices.

Custom agent used: create-agentic-workflow
Design agentic workflows using GitHub Agentic Workflows (gh-aw) extension with interactive guidance on triggers, tools, and security best practices.

Original prompt

More details for the token creation. See https://github.com/githubnext/gh-aw/blob/main/docs/src/content/docs/reference/tokens.md

Custom agent used: create-agentic-workflow
Design agentic workflows using GitHub Agentic Workflows (gh-aw) extension with interactive guidance on triggers, tools, and security best practices.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

- Add token overview table explaining when each token is needed
- Add detailed step-by-step instructions for creating Copilot, cross-repo, and Projects tokens
- Add instructions for adding tokens using both GitHub UI and CLI
- Add CLI helpers section for token management
- Add security best practices
- Reference comprehensive token documentation from gh-aw

Co-authored-by: pelikhan <[email protected]>
Copilot AI changed the title [WIP] Update documentation for token creation process Expand token creation documentation in README Dec 20, 2025
Copilot AI requested a review from pelikhan December 20, 2025 20:57
README.md Outdated
3. Enter the secret name and paste your token value
4. Click **Add secret**

**Using GitHub Agentic Workflows CLI (Recommended):**
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 instructions using cli. Only through UI.

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 all CLI instructions. The README now only includes UI-based steps for adding tokens as repository secrets. (29e75e2)

- Remove CLI-based token addition instructions
- Remove "CLI Helpers for Token Management" section
- Simplify to UI-only workflow for adding repository secrets
- Add clarification to repeat for each token created

Co-authored-by: pelikhan <[email protected]>
Copy link
Collaborator

@pelikhan pelikhan left a comment

Choose a reason for hiding this comment

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

@copilot document COPILOT_GITHUB_TOKEN first (end to end) then add section on rest of tokens

- Lead with complete COPILOT_GITHUB_TOKEN setup (create + add to repo)
- Move other tokens to "Additional Tokens (Advanced)" section
- Use collapsible details for advanced token instructions
- Emphasize getting started with Copilot quickly
- Keep advanced features accessible but not overwhelming

Co-authored-by: pelikhan <[email protected]>
Copy link
Contributor Author

Copilot AI commented Dec 20, 2025

@copilot document COPILOT_GITHUB_TOKEN first (end to end) then add section on rest of tokens

Restructured the README to document COPILOT_GITHUB_TOKEN end-to-end first (creation + adding to repository), then moved all other tokens to an "Additional Tokens (Advanced)" section with collapsible details. This makes it easier for users to get started quickly with Copilot. (6dcee3b)

README.md Outdated

</details>

### 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 the Security Best Practices section. (d85add4)

Per feedback, removing the Security Best Practices section from the README to simplify the setup documentation.

Co-authored-by: pelikhan <[email protected]>
@pelikhan
Copy link
Collaborator

@copilot add checkboxes on todo items

- Convert all step-by-step instructions to checkbox format
- Users can now check off items as they complete each step
- Applied to all token creation sections (Copilot, Cross-Repo, Projects, Agent)

Co-authored-by: pelikhan <[email protected]>
Copy link
Contributor Author

Copilot AI commented Dec 20, 2025

@copilot add checkboxes on todo items

Converted all numbered lists to checkboxes. Users can now check off each step as they complete the token setup process. (8d188f0)

@pelikhan pelikhan marked this pull request as ready for review December 20, 2025 21:33
@pelikhan pelikhan merged commit e588ee7 into main Dec 20, 2025
@pelikhan pelikhan deleted the copilot/update-token-creation-details branch December 20, 2025 21:33
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