Chore: [AEA-0000] - add workflow to sync copilot#2538
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 Copilot instructions into this repository.
Changes:
- Introduces
.github/workflows/sync_copilot.ymlto run onworkflow_dispatchand a weekly cron schedule. - Runs the
NHSDigital/eps-copilot-instructionsaction pinned to a commit SHA, passing refs and Create PR app 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.
This job appears intended to open a PR (uses create_pull_request environment and CREATE_PULL_REQUEST_* secrets) but it only grants contents: read. In this repo, PR-creating automation (e.g. .github/workflows/update_dev_container_version.yml) also grants pull-requests: write (and, depending on how the action pushes commits, may require contents: write). Consider aligning the permissions here so the action can create/update a PR reliably.
| contents: read | |
| contents: write | |
| pull-requests: write |
|



Summary
Details