mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-04-03 00:31:35 -07:00
cryptography build prevention + increase build timeouts + test cleanup
Signed-off-by: GitHub <noreply@github.com>
This commit is contained in:
2
.github/workflows/docker_prod.yml
vendored
2
.github/workflows/docker_prod.yml
vendored
@@ -17,7 +17,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
docker:
|
docker:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 30
|
timeout-minutes: 60
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
packages: write
|
packages: write
|
||||||
|
|||||||
@@ -36,15 +36,13 @@ RUN apk add --no-cache \
|
|||||||
libffi-dev \
|
libffi-dev \
|
||||||
openssl-dev \
|
openssl-dev \
|
||||||
git \
|
git \
|
||||||
rust \
|
|
||||||
cargo \
|
|
||||||
&& python -m venv /opt/venv
|
&& python -m venv /opt/venv
|
||||||
|
|
||||||
# Upgrade pip/wheel/setuptools and install Python packages
|
# Upgrade pip/wheel/setuptools and install Python packages
|
||||||
RUN python -m pip install --upgrade pip setuptools wheel && \
|
RUN python -m pip install --upgrade pip setuptools wheel && \
|
||||||
pip install --no-cache-dir -r /tmp/requirements.txt && \
|
pip install --prefer-binary --no-cache-dir -r /tmp/requirements.txt && \
|
||||||
chmod -R u-rwx,g-rwx /opt
|
chmod -R u-rwx,g-rwx /opt
|
||||||
|
|
||||||
# second stage is the main runtime stage with just the minimum required to run the application
|
# second stage is the main runtime stage with just the minimum required to run the application
|
||||||
# The runner is used for both devcontainer, and as a base for the hardened stage.
|
# The runner is used for both devcontainer, and as a base for the hardened stage.
|
||||||
FROM alpine:3.22 AS runner
|
FROM alpine:3.22 AS runner
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ def test_graphql_debug_get(client):
|
|||||||
|
|
||||||
|
|
||||||
def test_graphql_post_unauthorized(client):
|
def test_graphql_post_unauthorized(client):
|
||||||
"""POST /graphql without token should return 401"""
|
"""POST /graphql without token should return 403"""
|
||||||
query = {"query": "{ devices { devName devMac } }"}
|
query = {"query": "{ devices { devName devMac } }"}
|
||||||
resp = client.post("/graphql", json=query)
|
resp = client.post("/graphql", json=query)
|
||||||
assert resp.status_code == 403
|
assert resp.status_code == 403
|
||||||
|
|||||||
Reference in New Issue
Block a user