Chore: [AEA-0000] - use action to sync copilot#1048
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
Updates the repository’s “Sync Copilot Instructions” GitHub Actions workflow to use a dedicated action for syncing shared Copilot instructions (and opening a PR), rather than calling a reusable workflow.
Changes:
- Replace reusable-workflow invocation with a single job that runs the sync action and can create PRs.
- Update the scheduled trigger time and simplify
workflow_dispatch(remove custom inputs). - Add job-level permissions/environment needed for PR creation.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
.github/workflows/sync_copilot.yml
Outdated
| with: | ||
| common_workflows_ref: ${{ inputs.common_workflows_ref }} | ||
| sync-copilot-instructions: | ||
| runs-on: ubuntu-latest |
There was a problem hiding this comment.
runs-on: ubuntu-latest is the only workflow runner in this repo that tracks the moving ubuntu-latest label; the other workflows pin to ubuntu-22.04. Pinning the runner here as well (e.g., ubuntu-22.04) avoids unexpected breakages when GitHub updates the default image.
| runs-on: ubuntu-latest | |
| runs-on: ubuntu-22.04 |
.github/workflows/sync_copilot.yml
Outdated
|
|
||
| steps: | ||
| - name: Sync shared instructions | ||
| uses: NHSDigital/eps-copilot-instructions@initial_instructions |
There was a problem hiding this comment.
The action reference NHSDigital/eps-copilot-instructions@initial_instructions is a mutable ref (branch/tag), which is a supply-chain risk and can change behavior without this repo changing. Prefer pinning to an immutable commit SHA (or at least a protected, versioned tag) similar to other workflows in this repo.
| uses: NHSDigital/eps-copilot-instructions@initial_instructions | |
| uses: NHSDigital/eps-copilot-instructions@0123456789abcdef0123456789abcdef01234567 |
|



Summary
Details