Skip to content

Commit e73f0e0

Browse files
Chore: [AEA-5751] - Update dependabot schedule and add git secrets build command (#330)
## Summary updated dependabot schedule - 🤖 Operational or Infrastructure Change
1 parent a87fb41 commit e73f0e0

File tree

3 files changed

+31
-26
lines changed

3 files changed

+31
-26
lines changed

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ RUN apt-get update \
99
jq apt-transport-https ca-certificates gnupg-agent \
1010
software-properties-common bash-completion python3-pip make libbz2-dev \
1111
libreadline-dev libsqlite3-dev wget llvm libncurses5-dev libncursesw5-dev \
12-
xz-utils tk-dev liblzma-dev netcat ruby-full build-essential zlib1g-dev \
12+
xz-utils tk-dev liblzma-dev netcat-traditional ruby-full build-essential zlib1g-dev \
1313
&& apt remove -y openjdk-8-jdk-headless openjdk-8-jre-headless openjdk-8-jre
1414

1515
# install aws stuff

.devcontainer/devcontainer.json

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,6 @@
1313
"source=${env:HOME}${env:USERPROFILE}/.ssh,target=/home/vscode/.ssh,type=bind",
1414
"source=${env:HOME}${env:USERPROFILE}/.gnupg,target=/home/vscode/.gnupg,type=bind"
1515
],
16-
// Features to add to the dev container. More info: https://containers.dev/features.
17-
"features": {
18-
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {
19-
"version": "latest",
20-
"moby": "true",
21-
"installDockerBuildx": "true"
22-
}
23-
},
2416
"customizations": {
2517
"vscode": {
2618
"extensions": [
@@ -61,16 +53,15 @@
6153
}
6254
}
6355
},
64-
"remoteEnv": { "LOCAL_WORKSPACE_FOLDER": "${localWorkspaceFolder}" },
65-
"postCreateCommand": "rm -f ~/.docker/config.json; git config --global --add safe.directory /workspaces/eps-FHIR-validator-lambda; make install"
66-
// "features": {},
67-
// Use 'forwardPorts' to make a list of ports inside the container available locally.
68-
// "forwardPorts": [],
69-
// Use 'postCreateCommand' to run commands after the container is created.
70-
// "postCreateCommand": ""
71-
// Configure tool-specific properties.
72-
// "customizations": {},
73-
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
74-
// "remoteUser": "root"
56+
"remoteEnv": { "LOCAL_WORKSPACE_FOLDER": "${localWorkspaceFolder}" },
57+
"postAttachCommand": "docker build -f https://raw.githubusercontent.com/NHSDigital/eps-workflow-quality-checks/refs/tags/v4.0.4/dockerfiles/nhsd-git-secrets.dockerfile -t git-secrets . && poetry run pre-commit install --install-hooks -f",
58+
"features": {
59+
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {
60+
"version": "latest",
61+
"moby": "true",
62+
"installDockerBuildx": "true"
63+
},
64+
"ghcr.io/devcontainers/features/github-cli:1": {}
65+
}
7566
}
7667

.github/dependabot.yml

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,40 +19,54 @@ updates:
1919
# default location of `.github/workflows`
2020
directory: "/"
2121
schedule:
22-
interval: "daily"
22+
interval: "weekly"
23+
day: "friday"
24+
time: "18:00" # UTC
25+
open-pull-requests-limit: 20
2326
commit-message:
2427
prefix: "Upgrade: [dependabot] - "
2528

29+
2630
###################################
2731
# Java workspace ##################
2832
###################################
2933
- package-ecosystem: "maven"
3034
directory: "/"
3135
rebase-strategy: "disabled"
3236
schedule:
33-
interval: "daily"
37+
interval: "weekly"
38+
day: "friday"
39+
time: "18:00" # UTC
3440
open-pull-requests-limit: 20
3541
commit-message:
3642
prefix: "Upgrade: [dependabot] - "
3743

44+
3845
###################################
3946
# Poetry #########################
4047
###################################
4148
- package-ecosystem: "pip"
4249
directory: "/"
4350
schedule:
44-
interval: "daily"
45-
versioning-strategy: increase
51+
interval: "weekly"
52+
day: "friday"
53+
time: "18:00" # UTC
54+
open-pull-requests-limit: 20
4655
commit-message:
4756
prefix: "Upgrade: [dependabot] - "
57+
versioning-strategy: increase
58+
4859

4960
###################################
5061
# NPM workspace ##################
5162
###################################
5263
- package-ecosystem: "npm"
5364
directory: "/"
5465
schedule:
55-
interval: "daily"
56-
versioning-strategy: increase
66+
interval: "weekly"
67+
day: "friday"
68+
time: "18:00" # UTC
69+
open-pull-requests-limit: 20
5770
commit-message:
5871
prefix: "Upgrade: [dependabot] - "
72+
versioning-strategy: increase

0 commit comments

Comments
 (0)