Skip to content

Missing copilot-requests in permissions field on github-workflow.json schema #6175

Description

@kamontat

Area with issue?

JSON Schema

✔️ Expected Behavior

Github workflow schema missing copilot-requests in permissions field.

ref:

"permissions-event": {

❌ Actual Behavior

Image

JSON, YAML, or TOML file that does not work.

name: Prompt with Copilot CLI

on:
  push:
    branches:
      - main

permissions:
  contents: read
  copilot-requests: write

jobs:
  copilot:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v6
      - name: Install Copilot CLI
        run: npm install -g @github/copilot
      - name: Run Copilot
        run: copilot --yolo -p "Summarize the changes in this commit"
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

ref: https://docs.github.com/en/copilot/how-tos/copilot-cli/use-copilot-cli-in-actions#example-workflow

IDE or code editor.

Visual Studio Code

Are you making a PR for this?

Yes, I will create a PR.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions