Skip to content

Commit 5513ed7

Browse files
committed
fix
1 parent 49e065c commit 5513ed7

4 files changed

Lines changed: 37 additions & 14 deletions

File tree

.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-
"postAttachCommand": "git-secrets --register-aws; git-secrets --add-provider -- cat /usr/share/secrets-scanner/nhsd-rules-deny.txt",
1514
"features": {},
1615
"mounts": [
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
prefix: "Upgrade: [dependabot] - "
1717
open-pull-requests-limit: 20
1818
cooldown:
19-
default-days: 3
19+
default-days: 7
2020

2121
###################################
2222
# Poetry #########################
@@ -32,7 +32,7 @@ updates:
3232
versioning-strategy: increase
3333
open-pull-requests-limit: 20
3434
cooldown:
35-
default-days: 3
35+
default-days: 7
3636

3737
###################################
3838
# NPM #########################
@@ -48,4 +48,4 @@ updates:
4848
versioning-strategy: increase
4949
open-pull-requests-limit: 20
5050
cooldown:
51-
default-days: 3
51+
default-days: 7
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
@@ -42,6 +42,26 @@ repos:
4242

4343
- repo: local
4444
hooks:
45+
- id: check-commit-signing
46+
name: Check commit signing
47+
description: Ensures that commits are GPG signed
48+
entry: bash
49+
args:
50+
- -c
51+
- |
52+
if ! git config --get commit.gpgsign | grep -q "true" > /dev/null 2>&1; then
53+
echo "Error: Commit signing is not enabled."
54+
echo "Please enable commit signing with:"
55+
echo " git config commit.gpgsign true"
56+
echo ""
57+
echo "For more information, see: https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits"
58+
exit 1
59+
fi
60+
echo "Commit signing is properly configured."
61+
language: system
62+
pass_filenames: false
63+
always_run: true
64+
4565
- id: git-secrets
4666
name: Git Secrets
4767
description: git-secrets scans commits, commit messages, and --no-ff merges to prevent adding secrets into your git repositories.

0 commit comments

Comments
 (0)