No description
Find a file
Devraj Mehta 01f2415f3d
Merge pull request #9 from actions/devm33/check-write
Add step to warn about unnecessary write permissions
2026-03-16 23:14:51 -04:00
.github/workflows Fix: fetch new tag before updating major version tag 2026-03-10 22:00:28 -04:00
action.yml Add step to warn about unnecessary write permissions 2026-03-16 23:14:29 -04:00
CODE_OF_CONDUCT.md Add CODE_OF_CONDUCT.md and CONTRIBUTING.md files 2026-03-10 15:46:22 -04:00
CONTRIBUTING.md Add CODE_OF_CONDUCT.md and CONTRIBUTING.md files 2026-03-10 15:46:22 -04:00
LICENSE Update license 2026-03-10 15:40:26 -04:00
README.md Add step to warn about unnecessary write permissions 2026-03-16 23:14:29 -04:00

setup-copilot

A GitHub Action to install the GitHub Copilot CLI in your workflow.

Usage

steps:
  - uses: actions/setup-copilot@v0
    with:
      version: "latest" # optional, defaults to "latest"
      github-token: ${{ secrets.GITHUB_TOKEN }} # optional, defaults to github.token
  - run: copilot --version

Inputs

Input Description Required Default
version Version to install (latest, prerelease, or a specific version like 1.0.0) No latest
github-token GitHub token for downloading Copilot CLI No github.token

Outputs

Output Description
version The version of Copilot CLI installed

Examples

Install latest version

- uses: actions/setup-copilot@v0

Install a specific version

- uses: actions/setup-copilot@v0
  with:
    version: "1.2.3"

Use with a custom token

- uses: actions/setup-copilot@v0
  with:
    github-token: ${{ secrets.GH_TOKEN }}

How it works

This action uses the official Copilot CLI install script to download and install the binary, with checksum verification. The binary is installed to the runner's tool cache and added to PATH.

License

MIT

Contributions

Contributions are welcome! See Contributor's Guide

Code of Conduct

👋 Be nice. See our code of conduct