Skip to content

Commit 223f1ef

Browse files
authored
Chore: [AEA-0000] - sync copilot (#650)
## Summary - Routine Change ### Details - sync copilot
1 parent 930842c commit 223f1ef

File tree

5 files changed

+59
-14
lines changed

5 files changed

+59
-14
lines changed

.devcontainer/devcontainer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
"USER_GID": "${localEnv:GROUP_ID:}"
1212
}
1313
},
14-
"postCreateCommand": "bash -lc 'if ! git config --get-all secrets.patterns | grep -Fq AKIA; then git-secrets --register-aws; fi; if ! git config --get-all secrets.providers | grep -Fxq \"cat /usr/share/secrets-scanner/nhsd-rules-deny.txt\"; then git-secrets --add-provider -- cat /usr/share/secrets-scanner/nhsd-rules-deny.txt; fi'",
1514
"mounts": [
1615
"source=${env:HOME}${env:USERPROFILE}/.aws,target=/home/vscode/.aws,type=bind",
1716
"source=${env:HOME}${env:USERPROFILE}/.ssh,target=/home/vscode/.ssh,type=bind",

.github/dependabot.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ updates:
1616
commit-message:
1717
prefix: "Upgrade: [dependabot] - "
1818
cooldown:
19-
default-days: 3
19+
default-days: 7
2020

2121
###################################
2222
# Poetry #########################
@@ -32,7 +32,7 @@ updates:
3232
commit-message:
3333
prefix: "Upgrade: [dependabot] - "
3434
cooldown:
35-
default-days: 3
35+
default-days: 7
3636

3737
###################################
3838
# NPM workspace ##################
@@ -48,4 +48,4 @@ updates:
4848
commit-message:
4949
prefix: "Upgrade: [dependabot] - "
5050
cooldown:
51-
default-days: 3
51+
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
@@ -23,6 +23,26 @@ repos:
2323

2424
- repo: local
2525
hooks:
26+
- id: check-commit-signing
27+
name: Check commit signing
28+
description: Ensures that commits are GPG signed
29+
entry: bash
30+
args:
31+
- -c
32+
- |
33+
if ! git config --get commit.gpgsign | grep -q "true" > /dev/null 2>&1; then
34+
echo "Error: Commit signing is not enabled."
35+
echo "Please enable commit signing with:"
36+
echo " git config commit.gpgsign true"
37+
echo ""
38+
echo "For more information, see: https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits"
39+
exit 1
40+
fi
41+
echo "Commit signing is properly configured."
42+
language: system
43+
pass_filenames: false
44+
always_run: true
45+
2646
- id: lint-githubactions
2747
name: Lint github actions
2848
entry: make

0 commit comments

Comments
 (0)