File tree Expand file tree Collapse file tree 4 files changed +9
-2
lines changed
actions/install_requirements
src/fastcs/transports/rest Expand file tree Collapse file tree 4 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 1212 using : composite
1313 steps :
1414 - name : Get version of python
15+ # nosemgrep
1516 run : |
1617 PYTHON_VERSION="${{ inputs.python-version }}"
1718 if [ $PYTHON_VERSION == "dev" ]; then
Original file line number Diff line number Diff line change 1919 uses : ./.github/actions/install_requirements
2020
2121 - name : Run tox
22- run : tox -e ${{ inputs.tox }}
22+ run : tox -e ${{ inputs.tox }} # nosemgrep
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ async def attr_put(request):
7171 await attribute .put (cast_from_rest_type (attribute .datatype , request .value ))
7272
7373 # Fast api uses type annotations for validation, schema, conversions
74- attr_put .__annotations__ ["request" ] = _put_request_body (attribute )
74+ attr_put .__annotations__ ["request" ] = _put_request_body (attribute ) # nosemgrep
7575
7676 return attr_put
7777
Original file line number Diff line number Diff line change @@ -6,6 +6,9 @@ services:
66 image : registry.gitlab.com/tango-controls/docker/mysql:5
77 environment :
88 - MYSQL_ROOT_PASSWORD=root
9+ security_opt :
10+ - " no-new-privileges:true"
11+ read_only : true
912
1013 tango-cs :
1114 hostname : localhost
@@ -20,3 +23,6 @@ services:
2023 - MYSQL_DATABASE=tango
2124 depends_on :
2225 - mysql
26+ security_opt :
27+ - " no-new-privileges:true"
28+ read_only : true
You can’t perform that action at this time.
0 commit comments