You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Use only 'java-kotlin' to analyze code written in Java, Kotlin or both
44
+
# Use only 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
37
45
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
38
46
39
47
steps:
@@ -48,25 +56,27 @@ jobs:
48
56
# If you wish to specify custom queries, you can do so here or in a config file.
49
57
# By default, queries listed here will override any specified in a config file.
50
58
# Prefix the list here with "+" to use these queries and those in the config file.
51
-
52
-
#Details on CodeQL's query packs refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
59
+
60
+
#For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
53
61
# queries: security-extended,security-and-quality
54
62
55
-
56
-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
63
+
64
+
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
57
65
# If this step fails, then you should remove it and run the build manually (see below)
58
66
- name: Autobuild
59
67
uses: github/codeql-action/autobuild@v2
60
68
61
69
# ℹ️ Command-line programs to run using the OS shell.
62
70
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
63
71
64
-
# If the Autobuild fails above, remove it and uncomment the following three lines.
72
+
# If the Autobuild fails above, remove it and uncomment the following three lines.
65
73
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
Copy file name to clipboardExpand all lines: .gitignore
+11-3Lines changed: 11 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
-
# Created by https://www.toptal.com/developers/gitignore/api/windows,macos,osx,linux,jetbrains+all,visualstudio,visualstudiocode,python,flask,git,venv
2
-
# Edit at https://www.toptal.com/developers/gitignore?templates=windows,macos,osx,linux,jetbrains+all,visualstudio,visualstudiocode,python,flask,git,venv
1
+
# Created by https://www.toptal.com/developers/gitignore/api/git,osx,venv,flask,linux,macos,python,windows,certificates,visualstudio,jetbrains+all,visualstudiocode
2
+
# Edit at https://www.toptal.com/developers/gitignore?templates=git,osx,venv,flask,linux,macos,python,windows,certificates,visualstudio,jetbrains+all,visualstudiocode
3
3
4
4
### GOV.UK Frontend ###
5
5
app/static/fonts*
@@ -8,6 +8,14 @@ app/static/images*
8
8
app/static/VERSION.txt
9
9
govuk_components*
10
10
11
+
### certificates ###
12
+
*.pem
13
+
*.key
14
+
*.crt
15
+
*.cer
16
+
*.der
17
+
*.priv
18
+
11
19
### Flask ###
12
20
instance/*
13
21
!instance/.gitignore
@@ -872,4 +880,4 @@ FodyWeavers.xsd
872
880
### VisualStudio Patch ###
873
881
# Additional files built by Visual Studio
874
882
875
-
# End of https://www.toptal.com/developers/gitignore/api/windows,macos,osx,linux,jetbrains+all,visualstudio,visualstudiocode,python,flask,git,venv
883
+
# End of https://www.toptal.com/developers/gitignore/api/git,osx,venv,flask,linux,macos,python,windows,certificates,visualstudio,jetbrains+all,visualstudiocode
Copy file name to clipboardExpand all lines: README.md
+17-25Lines changed: 17 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,37 +15,17 @@ The app is provided intentionally bare, with just the essential parts that all s
15
15
16
16
### Required
17
17
18
-
- Python 3.8.x or higher
19
-
20
-
### Optional
21
-
22
-
- Redis 4.0.x or higher (for rate limiting, otherwise in-memory storage is used)
18
+
- Docker
23
19
24
20
## Getting started
25
21
26
22
### Create a new repository
27
23
28
24
[Create a new repository](https://github.com/LandRegistry/govuk-frontend-flask/generate) using this template, with the same directory structure and files. Then clone a local copy of your newly created repository.
For convenience a shell script has been provided to download and extract the GOV.UK Frontend distribution assets
41
-
42
-
```shell
43
-
./build.sh
44
-
```
45
-
46
26
### Set local environment variables
47
27
48
-
In the `.flaskenv` file you will find a number of environment variables. These are injected as global variables into the app and pre-populated into page templates as appropriate. Enter your specific information for the following:
28
+
In the `compose.yml` file you will find a number of environment variables. These are injected as global variables into the app and pre-populated into page templates as appropriate. Enter your specific service information for the following:
49
29
50
30
- CONTACT_EMAIL
51
31
- CONTACT_PHONE
@@ -55,13 +35,25 @@ In the `.flaskenv` file you will find a number of environment variables. These a
55
35
- SERVICE_PHASE
56
36
- SERVICE_URL
57
37
58
-
### Run app
38
+
You must also set a new unique `SECRET_KEY`, which is used to securely sign the session cookie and CSRF tokens. It should be a long random `bytes` or `str`. You can use the output of this Python comand to generate a new key:
You should now have the app running on <http://localhost:5000/>
56
+
You should now have the app running on <https://localhost:8000/>. Accept the browsers security warning due to the self-signed HTTPS certificate to continue.
0 commit comments