Skip to content

Commit cd6b436

Browse files
authored
Chore: [AEA-0000] - sync copilot (#503)
## Summary - Routine Change ### Details - sync copilot
1 parent e1882dc commit cd6b436

5 files changed

Lines changed: 59 additions & 14 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
"source=${env:HOME}${env:USERPROFILE}/.npmrc,target=/home/vscode/.npmrc,type=bind",
1919
"source=${env:HOME}${env:USERPROFILE}/.gitconfig,target=/home/vscode/.gitconfig,type=bind"
2020
],
21-
"postAttachCommand": "git-secrets --register-aws; git-secrets --add-provider -- cat /usr/share/secrets-scanner/nhsd-rules-deny.txt",
2221
"features": {},
2322
"remoteEnv": {
2423
"LOCAL_WORKSPACE_FOLDER": "${localWorkspaceFolder}/"

.github/dependabot.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ updates:
1717
commit-message:
1818
prefix: "Upgrade: [dependabot] - "
1919
cooldown:
20-
default-days: 3
20+
default-days: 7
2121

2222
###################################
2323
# NPM workspace ##################
@@ -33,7 +33,7 @@ updates:
3333
commit-message:
3434
prefix: "Upgrade: [dependabot] - "
3535
cooldown:
36-
default-days: 3
36+
default-days: 7
3737

3838
###################################
3939
# Poetry #########################
@@ -49,4 +49,4 @@ updates:
4949
commit-message:
5050
prefix: "Upgrade: [dependabot] - "
5151
cooldown:
52-
default-days: 3
52+
default-days: 7

.github/workflows/sync_copilot.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Sync Copilot Instructions
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 6 * * 1'
7+
8+
jobs:
9+
sync-copilot-instructions:
10+
runs-on: ubuntu-22.04
11+
environment: create_pull_request
12+
permissions:
13+
contents: read
14+
15+
steps:
16+
- name: Sync shared instructions
17+
uses: NHSDigital/eps-copilot-instructions@a7849a16aabd5c1edef13e29467a480fa08555f8
18+
with:
19+
copilot_instructions_ref: main
20+
calling_repo_base_branch: main
21+
CREATE_PULL_REQUEST_APP_ID: ${{ secrets.CREATE_PULL_REQUEST_APP_ID }}
22+
CREATE_PULL_REQUEST_PEM: ${{ secrets.CREATE_PULL_REQUEST_PEM }}
Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
1-
name: Update Devcontainer Version
1+
name: Update devcontainer version
22

33
on:
44
workflow_dispatch:
55
schedule:
6-
- cron: "0 18 * * 4"
6+
- cron: '0 6 * * 4'
7+
permissions: {}
78

89
jobs:
9-
update_devcontainer_version:
10-
uses: NHSDigital/eps-common-workflows/.github/workflows/update-dev-container-version.yml@23342d86a245c076937abd6aecdd0ce06446b1e6
10+
update-devcontainer-version:
11+
runs-on: ubuntu-22.04
12+
environment: create_pull_request
1113
permissions:
1214
contents: read
1315
packages: read
14-
pull-requests: write
15-
with:
16-
base_branch: main
17-
secrets:
18-
CREATE_PULL_REQUEST_APP_ID: ${{ secrets.CREATE_PULL_REQUEST_APP_ID }}
19-
CREATE_PULL_REQUEST_PEM: ${{ secrets.CREATE_PULL_REQUEST_PEM }}
16+
17+
steps:
18+
- name: Update devcontainer version
19+
uses: NHSDigital/eps-update-devcontainer@dc3a8c5f11e7226ee4f5f2bb35bd0d1265092306
20+
with:
21+
calling_repo_base_branch: main
22+
CREATE_PULL_REQUEST_APP_ID: ${{ secrets.CREATE_PULL_REQUEST_APP_ID }}
23+
CREATE_PULL_REQUEST_PEM: ${{ secrets.CREATE_PULL_REQUEST_PEM }}

.pre-commit-config.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,26 @@ repos:
5959

6060
- repo: local
6161
hooks:
62+
- id: check-commit-signing
63+
name: Check commit signing
64+
description: Ensures that commits are GPG signed
65+
entry: bash
66+
args:
67+
- -c
68+
- |
69+
if ! git config --get commit.gpgsign | grep -q "true" > /dev/null 2>&1; then
70+
echo "Error: Commit signing is not enabled."
71+
echo "Please enable commit signing with:"
72+
echo " git config commit.gpgsign true"
73+
echo ""
74+
echo "For more information, see: https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits"
75+
exit 1
76+
fi
77+
echo "Commit signing is properly configured."
78+
language: system
79+
pass_filenames: false
80+
always_run: true
81+
6282
- id: git-secrets
6383
name: Git Secrets
6484
description: git-secrets scans commits, commit messages, and --no-ff merges to prevent adding secrets into your git repositories.

0 commit comments

Comments
 (0)