Conversation
|
This PR is linked to a ticket in an NHS Digital JIRA Project. Here's a handy link to the ticket: AEA-0000 |
There was a problem hiding this comment.
Pull request overview
Adds a scheduled/manual GitHub Actions workflow to sync shared GitHub Copilot instructions into this repository (via a dedicated action).
Changes:
- Introduces
.github/workflows/sync_copilot.ymlto run weekly (and on-demand) to sync shared Copilot instructions. - Configures the workflow to use the
NHSDigital/eps-copilot-instructionsaction with app-based credentials.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| runs-on: ubuntu-22.04 | ||
| environment: create_pull_request | ||
| permissions: | ||
| contents: read |
There was a problem hiding this comment.
sync-copilot-instructions appears to be intended to create a PR (it is using CREATE_PULL_REQUEST_* credentials), but the job permissions only grant contents: read. In this repo, other PR-creating automation (e.g. .github/workflows/update_dev_container_version.yml:11-15) also requests pull-requests: write. Add pull-requests: write here (and any other minimal permissions required by the action) to avoid the workflow failing when it tries to open/update a PR.
| contents: read | |
| contents: read | |
| pull-requests: write |
|
|



Summary
Details