-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
36e28c7
commit 083f3c7
Showing
227 changed files
with
10,917 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
allure-report/ | ||
allure-results/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_size = 2 | ||
indent_style = space | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.md] | ||
indent_size = unset | ||
|
||
[*.py] | ||
indent_size = 4 | ||
|
||
[{Dockerfile,Dockerfile.}*] | ||
indent_size = 4 | ||
|
||
[{Makefile,*.mk,go.mod,go.sum,*.go,.gitmodules}] | ||
indent_style = tab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
scripts/docker/** linguist-vendored | ||
scripts/githooks/** linguist-vendored | ||
scripts/reports/** linguist-vendored | ||
scripts/terraform/** linguist-vendored | ||
scripts/tests/test.mk linguist-vendored | ||
scripts/init.mk linguist-vendored | ||
scripts/shellscript-linter.sh linguist-vendored |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# WARNING: Please, DO NOT edit this section of the file! It is maintained in the repository template. | ||
|
||
.scannerwork | ||
*cloc*report*.json | ||
*sbom*report*.json | ||
*vulnerabilities*report*.json | ||
*report*json.zip | ||
.version | ||
|
||
*.code-workspace | ||
!project.code-workspace | ||
|
||
# Please, add your custom content below! | ||
|
||
*.pyc | ||
*.png | ||
__pycache__/ | ||
screenshots/ | ||
.env | ||
venv/ | ||
allure-results/ | ||
allure-report/ | ||
.js | ||
node_modules/ | ||
package-lock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# SEE: https://github.com/gitleaks/gitleaks/blob/master/README.md#gitleaksignore | ||
|
||
cd9c0efec38c5d63053dd865e5d4e207c0760d91:docs/guides/Perform_static_analysis.md:generic-api-key:37 | ||
1e6cd0c529846102b12aa16a9f85fc94b6cd03c5:helpers/playwrightHelper.py:ipv4:64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# This file is for you! Please, updated to the versions agreed by your team. | ||
|
||
terraform 1.7.0 | ||
pre-commit 3.6.0 | ||
|
||
# ============================================================================== | ||
# The section below is reserved for Docker image versions. | ||
|
||
# TODO: Move this section - consider using a different file for the repository template dependencies. | ||
# docker/ghcr.io/anchore/grype v0.69.1@sha256:d41fcb371d0af59f311e72123dff46900ebd6d0482391b5a830853ee4f9d1a76 # SEE: https://github.com/anchore/grype/pkgs/container/grype | ||
# docker/ghcr.io/anchore/syft v0.92.0@sha256:63c60f0a21efb13e80aa1359ab243e49213b6cc2d7e0f8179da38e6913b997e0 # SEE: https://github.com/anchore/syft/pkgs/container/syft | ||
# docker/ghcr.io/gitleaks/gitleaks v8.18.0@sha256:fd2b5cab12b563d2cc538b14631764a1c25577780e3b7dba71657d58da45d9d9 # SEE: https://github.com/gitleaks/gitleaks/pkgs/container/gitleaks | ||
# docker/ghcr.io/igorshubovych/markdownlint-cli v0.37.0@sha256:fb3e79946fce78e1cde84d6798c6c2a55f2de11fc16606a40d49411e281d950d # SEE: https://github.com/igorshubovych/markdownlint-cli/pkgs/container/markdownlint-cli | ||
# docker/ghcr.io/make-ops-tools/gocloc latest@sha256:6888e62e9ae693c4ebcfed9f1d86c70fd083868acb8815fe44b561b9a73b5032 # SEE: https://github.com/make-ops-tools/gocloc/pkgs/container/gocloc | ||
# docker/ghcr.io/nhs-england-tools/github-runner-image 20230909-321fd1e-rt@sha256:ce4fd6035dc450a50d3cbafb4986d60e77cb49a71ab60a053bb1b9518139a646 # SEE: https://github.com/nhs-england-tools/github-runner-image/pkgs/container/github-runner-image | ||
# docker/hadolint/hadolint 2.12.0-alpine@sha256:7dba9a9f1a0350f6d021fb2f6f88900998a4fb0aaf8e4330aa8c38544f04db42 # SEE: https://hub.docker.com/r/hadolint/hadolint/tags | ||
# docker/hashicorp/terraform 1.5.6@sha256:180a7efa983386a27b43657ed610e9deed9e6c3848d54f9ea9b6cb8a5c8c25f5 # SEE: https://hub.docker.com/r/hashicorp/terraform/tags | ||
# docker/jdkato/vale v2.29.7@sha256:5ccfac574231b006284513ac3e4e9f38833989d83f2a68db149932c09de85149 # SEE: https://hub.docker.com/r/jdkato/vale/tags | ||
# docker/koalaman/shellcheck latest@sha256:e40388688bae0fcffdddb7e4dea49b900c18933b452add0930654b2dea3e7d5c # SEE: https://hub.docker.com/r/koalaman/shellcheck/tags | ||
# docker/mstruebing/editorconfig-checker 2.7.1@sha256:dd3ca9ea50ef4518efe9be018d669ef9cf937f6bb5cfe2ef84ff2a620b5ddc24 # SEE: https://hub.docker.com/r/mstruebing/editorconfig-checker/tags | ||
# docker/sonarsource/sonar-scanner-cli 5.0.1@sha256:494ecc3b5b1ee1625bd377b3905c4284e4f0cc155cff397805a244dee1c7d575 # SEE: https://hub.docker.com/r/sonarsource/sonar-scanner-cli/tags |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"recommendations": [ | ||
"alefragnani.bookmarks", | ||
"davidanson.vscode-markdownlint", | ||
"dbaeumer.vscode-eslint", | ||
"donjayamanne.githistory", | ||
"eamodio.gitlens", | ||
"editorconfig.editorconfig", | ||
"esbenp.prettier-vscode", | ||
"github.codespaces", | ||
"github.github-vscode-theme", | ||
"github.remotehub", | ||
"github.vscode-github-actions", | ||
"github.vscode-pull-request-github", | ||
"hediet.vscode-drawio", | ||
"johnpapa.vscode-peacock", | ||
"mhutchie.git-graph", | ||
"ms-azuretools.vscode-docker", | ||
"ms-vscode-remote.remote-containers", | ||
"ms-vscode-remote.remote-wsl", | ||
"ms-vscode.hexeditor", | ||
"ms-vscode.live-server", | ||
"ms-vsliveshare.vsliveshare", | ||
"redhat.vscode-xml", | ||
"streetsidesoftware.code-spell-checker-british-english", | ||
"tamasfe.even-better-toml", | ||
"tomoki1207.pdf", | ||
"vscode-icons-team.vscode-icons", | ||
"vstirbu.vscode-mermaid-preview", | ||
"wayou.vscode-todo-highlight", | ||
"yzane.markdown-pdf", | ||
"yzhang.dictionary-completion", | ||
"yzhang.markdown-all-in-one" | ||
], | ||
"unwantedRecommendations": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"markdownlint.config": { | ||
"MD013": false, | ||
"MD024": { "siblings_only": true }, | ||
"MD033": false | ||
}, | ||
"python.testing.unittestEnabled": false, | ||
"python.testing.pytestEnabled": true, | ||
"cSpell.words": [ | ||
"immunisation", | ||
"organisation" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
FROM python:3.11 | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
curl \ | ||
default-jre \ | ||
default-jdk \ | ||
libgtk-3-0 \ | ||
libgbm-dev \ | ||
libxkbcommon-x11-0 \ | ||
libxcomposite1 \ | ||
libxdamage1 \ | ||
libxrandr2 \ | ||
libxss1 \ | ||
libxtst6 \ | ||
libnss3 \ | ||
libnspr4 \ | ||
fonts-noto-cjk \ | ||
fonts-noto-color-emoji \ | ||
fonts-noto-core \ | ||
fonts-noto-hinted \ | ||
fonts-noto-ui-core \ | ||
fonts-noto-unhinted | ||
|
||
WORKDIR /app | ||
|
||
COPY requirements.txt . | ||
|
||
RUN pip install --no-cache-dir -r requirements.txt \ | ||
&& pip install tox \ | ||
&& pip install --upgrade playwright \ | ||
&& playwright install \ | ||
&& playwright install --force chrome \ | ||
&& playwright install --force msedge \ | ||
&& playwright install --force webkit \ | ||
&& playwright install-deps \ | ||
&& curl -o allure-commandline-2.17.3.tgz -Ls https://repo.maven.apache.org/maven2/io/qameta/allure/allure-commandline/2.17.3/allure-commandline-2.17.3.tgz \ | ||
&& tar -zxvf allure-commandline-2.17.3.tgz -C /opt/ \ | ||
&& ln -s /opt/allure-2.17.3/bin/allure /usr/bin/allure \ | ||
&& rm -rf allure-commandline-2.17.3.tgz \ | ||
&& allure --version | ||
|
||
RUN apt-get update && apt-get install -y locales && rm -rf /var/lib/apt/lists/* \ | ||
&& locale-gen "en_GB.UTF-8" | ||
ENV LANG=en_GB.UTF-8 \ | ||
LANGUAGE=en_GB:en \ | ||
LC_ALL=en_GB.UTF-8 | ||
|
||
|
||
# Expose port for Allure server | ||
EXPOSE 5050 | ||
|
||
COPY . . | ||
|
||
# Update the entrypoint to start both Allure server and tox | ||
ENTRYPOINT ["tox"] | ||
# ENTRYPOINT [ "bash" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# MIT Licence | ||
|
||
Copyright (c) 2023 Crown Copyright NHS England. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# This file is for you! Edit it to implement your own hooks (make targets) into | ||
# the project as automated steps to be executed on locally and in the CD pipeline. | ||
|
||
include scripts/init.mk | ||
|
||
# ============================================================================== | ||
|
||
# Example CI/CD targets are: dependencies, build, publish, deploy, clean, etc. | ||
|
||
dependencies: # Install dependencies needed to build and test the project @Pipeline | ||
# TODO: Implement installation of your project dependencies | ||
|
||
build: # Build the project artefact @Pipeline | ||
# TODO: Implement the artefact build step | ||
|
||
publish: # Publish the project artefact @Pipeline | ||
# TODO: Implement the artefact publishing step | ||
|
||
deploy: # Deploy the project artefact to the target environment @Pipeline | ||
# TODO: Implement the artefact deployment step | ||
|
||
clean:: # Clean-up project resources (main) @Operations | ||
# TODO: Implement project resources clean-up step | ||
|
||
config:: # Configure development environment (main) @Configuration | ||
# TODO: Use only 'make' targets that are specific to this project, e.g. you may not need to install Node.js | ||
make _install-dependencies | ||
|
||
# ============================================================================== | ||
|
||
${VERBOSE}.SILENT: \ | ||
build \ | ||
clean \ | ||
config \ | ||
dependencies \ | ||
deploy \ |
Oops, something went wrong.