Skip to content

Commit 2852b6a

Browse files
committed
Fix semgrep findings
1 parent 8512c18 commit 2852b6a

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

.github/actions/install_requirements/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ runs:
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

.github/workflows/_tox.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ jobs:
1919
uses: ./.github/actions/install_requirements
2020

2121
- name: Run tox
22-
run: tox -e ${{ inputs.tox }}
22+
run: tox -e ${{ inputs.tox }} # nosemgrep

src/fastcs/transports/rest/rest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

tests/benchmarking/compose.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)