Answer: To invoke Copilot CLI directly in a workflow step, install the CLI with npm using `npm install -g @github/copilot`, then run it with `copilot -p` and set the `GITHUB_TOKEN` environment variable to `${{ github.token }}`. The workflow also needs the `copilot-requests: write` permission. Status: Check failed Entry: tool/github-copilot/integrations/use-copilot-cli-in-workflow Revision: 2 Digest: sha256:e2b551642e2e32d3 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:24:27Z Last changed: 2026-11-16T12:46:35Z Last verified: 2026-11-17T13:19:14Z Last attempt: 2026-11-20T13:02:53Z (failed) Next check: 2026-11-20T14:02:53Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of install command | npm install -g @github/copilot | [1] | 2026-11-17 run command | copilot -p "Use git show HEAD to summarize the changes in this commit" -s --allow-tool='shell(git show:*)' | [1] | 2026-11-17 required permission | copilot-requests: write | [1] | 2026-11-17 authentication token | ${{ github.token }} | [1] | 2026-11-17 fetch-depth | 2 | [1] | 2026-11-17 update command | copilot update | [1] | 2026-11-17 Sources: [1] GitHub. "Using Copilot CLI in GitHub Actions with GITHUB_TOKEN - GitHub Docs". https://docs.github.com/en/copilot/how-tos/copilot-cli/use-copilot-cli-in-actions Role: primary. Accessed: 2026-11-17T13:19:14Z Quote: "run: npm install -g @github/copilot" (Supports: install command) Quote: "run: copilot -p "Use git show HEAD to summarize the changes in this commit" -s --allow-tool='shell(git show:*)'" (Supports: run command) Quote: "copilot-requests: write" (Supports: required permission) Quote: "GITHUB_TOKEN: ${{ github.token }}" (Supports: authentication token) Quote: "fetch-depth: 2" (Supports: fetch-depth) Quote: "Update with copilot update" (Supports: update command) Snapshot SHA-256: cc48c34d6db78abe0a9086eff3d032b631d90b5a0cdbfbf07b5e45fa9b5816c8 (captured 2026-11-16T12:46:36Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-16T12:46:35Z, so the values verified then were kept. Cross-check: not-available at 2026-11-17T13:19:14Z. No independent second source is configured for this entry Last successful check: 2026-11-17T13:19:14Z Last attempt: 2026-11-20T13:02:53Z (failed) Notes and limitations: Extracted automatically from a single official source (section "Using Copilot CLI directly in a workflow"). Related: https://latestn.com/tool/github-copilot/integrations/use-github-mcp-server-from-copilot-chat How do I use the GitHub MCP server from GitHub Copilot Chat? https://latestn.com/tool/github-copilot/integrations/use-github-mcp-server-in-ide How do I use the GitHub MCP Server in my IDE with GitHub Copilot? https://latestn.com/tool/github-copilot/integrations/use-marketplace-plugins How do I use plugins from a marketplace with GitHub Copilot? https://latestn.com/tool/github-copilot/integrations/supported-connector-services Which services are supported as GitHub Copilot connectors? https://latestn.com/tool/github-copilot/integrations/supported-integrations Which integrations does GitHub Copilot support? https://latestn.com/tool/github-copilot/integrations/third-party-coding-agents Which third-party coding agents can I use with GitHub Copilot? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-18T12:57:11Z | check-failed | Extraction did not pass verification: answer contains `copilot -p "..." -s --allow-tool='shell(git show:*)'`, which does not appear in the source | — 2026-11-16T12:46:35Z | changed | update command: — → copilot update | [1] 2026-11-16T12:46:35Z | changed | runner: ubuntu-latest → — | [1] 2026-11-16T12:46:35Z | changed | fetch-depth: fetch-depth: 2 → 2 | [1] 2026-11-16T12:46:35Z | changed | authentication token: GITHUB_TOKEN: ${{ github.token }} → ${{ github.token }} | [1] 2026-11-13T03:24:27Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/github-copilot/integrations/use-copilot-cli-in-workflow/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/github-copilot/integrations/use-copilot-cli-in-workflow POST: https://latestn.com/dispute/tool/github-copilot/integrations/use-copilot-cli-in-workflow with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/github-copilot/integrations/use-copilot-cli-in-workflow?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I use GitHub Copilot CLI directly in a GitHub Actions workflow? Revision 2, last verified 2026-11-17T13:19:14Z. https://latestn.com/tool/github-copilot/integrations/use-copilot-cli-in-workflow (accessed 2026-11-21T09:52:51Z). @misc{LatestN_tool_github_copilot_integrations_use_copilot_cli_in_workflow_r2, title = {How do I use GitHub Copilot CLI directly in a GitHub Actions workflow?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/github-copilot/integrations/use-copilot-cli-in-workflow}}, note = {Revision 2; digest sha256:e2b551642e2e32d3; last verified 2026-11-17T13:19:14Z; accessed 2026-11-21T09:52:51Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/github-copilot/integrations/use-copilot-cli-in-workflow