Skip to content

Commit

Permalink
Update from python3.10 to 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
elyousfi5 committed Nov 1, 2023
1 parent 2985f6f commit f996733
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.10"]
python-version: ["3.11"]

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.10"]
python-version: ["3.11"]

steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.10-alpine as base
FROM python:3.11-alpine as base
FROM base as builder
RUN apk add build-base
RUN mkdir /install
Expand All @@ -12,4 +12,4 @@ ENV PYTHONPATH=/app
COPY agent /app/agent
COPY ostorlab.yaml /app/agent/ostorlab.yaml
WORKDIR /app
CMD ["python3", "/app/agent/local_persist_vulnz_agent.py"]
CMD ["python3.11", "/app/agent/local_persist_vulnz_agent.py"]
2 changes: 1 addition & 1 deletion ostorlab.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
kind: Agent
name: local_persist_vulnz
version: 0.1.5
version: 0.1.6
description: |
This repository is an implementation of the default persist vulnz agent. Persist Vulnz is a default agent needed to run a scan using the local runtime.
Expand Down
2 changes: 1 addition & 1 deletion tests/agent_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ def testLocalPersistVulnzAgent_always_VulnPersistedToLocalDB(

assert session.query(models.Vulnerability).count() == init_count + 1
assert "My reference: https://ostorlab.co" in vuln.references
assert "Domain: dummy.co" in vuln.location
assert "Domain: `dummy.co`" in vuln.location
assert "URL: https://dummy.co/path1" in vuln.location

0 comments on commit f996733

Please sign in to comment.