-
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.
Fix various issues reported by sonarcloud
Dockerfiles: - Run containers as non-root user Python: - Add CSRF protection - Split safe and unsafe routes - Don't run in debug mode JavaScript: - Don't use asynchronous constructor side-effects - Add integrity check to external resources #patch
- Loading branch information
Showing
9 changed files
with
90 additions
and
46 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
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
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
Flask==3.0.3 | ||
Flask-WTF==1.2.1 | ||
requests==2.32.3 | ||
Jinja2==3.1.4 | ||
jsonschema==4.23.0 | ||
|
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
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
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
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 |
---|---|---|
|
@@ -63,6 +63,8 @@ <h2 class="govuk-error-summary__title">{{ error.detail }}</h2> | |
{% endif %} {% endif %} | ||
|
||
<form method="post"> | ||
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" /> | ||
|
||
<div class="govuk-form-group"> | ||
<label class="govuk-label govuk-label--m" for="f-uid">UID</label> | ||
<input | ||
|
@@ -100,7 +102,11 @@ <h2 class="govuk-error-summary__title">{{ error.detail }}</h2> | |
</main> | ||
</div> | ||
|
||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jsonSchemaLibrary.min.js"></script> | ||
<script | ||
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jsonSchemaLibrary.min.js" | ||
integrity="sha384-RePbUf/gtYzyS1nEErY0oNbL9zMtjU3TXf4Dj4FBEmhclyRv8pPvibkBEMUpd/c3" | ||
crossorigin="anonymous" | ||
></script> | ||
<script type="module"> | ||
import { initAll as govukInitAll } from "./assets/govuk-frontend.min.js"; | ||
import { initAll as appInitAll } from "./assets/js/main.mjs"; | ||
|
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
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