Area with issue?
JSON Schema
✔️ Expected Behavior
Github workflow schema missing copilot-requests in permissions field.
ref:
❌ Actual Behavior
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.
Area with issue?
JSON Schema
✔️ Expected Behavior
Github workflow schema missing copilot-requests in permissions field.
ref:
schemastore/src/schemas/json/github-workflow.json
Line 235 in 4b00bca
❌ Actual Behavior
JSON, YAML, or TOML file that does not work.
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.