axim-memory-sdk 0.2.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of axim-memory-sdk might be problematic. Click here for more details.

@@ -0,0 +1,20 @@
1
+ version: 2
2
+ updates:
3
+ # Keep GitHub Actions pinned SHAs/versions current to prevent
4
+ # supply-chain injection through outdated third-party actions.
5
+ - package-ecosystem: "github-actions"
6
+ directory: "/"
7
+ schedule:
8
+ interval: "weekly"
9
+
10
+ # The SDK itself has zero runtime dependencies; this watches the
11
+ # dev/CI tooling surface for security patches.
12
+ - package-ecosystem: "pip"
13
+ directory: "/"
14
+ schedule:
15
+ interval: "weekly"
16
+
17
+ - package-ecosystem: "pip"
18
+ directory: "/.github"
19
+ schedule:
20
+ interval: "weekly"
@@ -0,0 +1 @@
1
+ bandit[sarif]==1.9.4
@@ -0,0 +1,93 @@
1
+ name: Axim Memory SDK — Binary Wheels Build & PyPI Publish
2
+
3
+ # Only builds compiled, stripped binary wheels across Linux, macOS, and Windows.
4
+ # NO source distributions (sdist / .tar.gz) are ever published to protect proprietary IP.
5
+
6
+ on:
7
+ push:
8
+ branches: [main, master]
9
+ tags: ["v*"]
10
+ pull_request:
11
+ branches: [main, master]
12
+ workflow_dispatch:
13
+
14
+ permissions:
15
+ contents: read
16
+
17
+ jobs:
18
+ # ── Multi-Platform Native Rust + Python Maturin Wheels ──
19
+ build-wheels:
20
+ name: Build wheels (${{ matrix.os }})
21
+ strategy:
22
+ fail-fast: false
23
+ matrix:
24
+ os: [ubuntu-latest, macos-latest, windows-latest]
25
+ runs-on: ${{ matrix.os }}
26
+ steps:
27
+ - uses: actions/checkout@v4
28
+
29
+ - name: Set up Python
30
+ uses: actions/setup-python@v5
31
+ with:
32
+ python-version: "3.12"
33
+
34
+ - name: Install Rust toolchain
35
+ uses: dtolnay/rust-toolchain@stable
36
+
37
+ - name: Install build dependencies
38
+ run: |
39
+ python -m pip install --upgrade pip
40
+ pip install "maturin>=1.5,<3.0" pytest twine
41
+
42
+ - name: Build stripped native binary wheels with Maturin
43
+ run: |
44
+ maturin build --release --sdist --features python --out target/wheels
45
+
46
+ - name: Verify wheel installation and run test suite
47
+ shell: bash
48
+ run: |
49
+ pip install target/wheels/*.whl
50
+ python -c "import axim_memory; print(axim_memory.native_info())"
51
+ pytest -v
52
+
53
+ - name: Twine verification
54
+ shell: bash
55
+ run: |
56
+ twine check target/wheels/*
57
+
58
+ - name: Upload wheel artifact
59
+ uses: actions/upload-artifact@v4
60
+ with:
61
+ name: axim-memory-wheel-${{ matrix.os }}
62
+ path: target/wheels/*.whl
63
+ if-no-files-found: error
64
+
65
+ # ── Publish binary wheels to PyPI (NO sdist / NO source code) ──
66
+ publish-pypi:
67
+ name: Publish Binary Wheels to PyPI
68
+ needs: [build-wheels]
69
+ if: startsWith(github.ref, 'refs/tags/v') || github.event_name == 'workflow_dispatch' || github.ref == 'refs/heads/main'
70
+ runs-on: ubuntu-latest
71
+ permissions:
72
+ id-token: write
73
+ contents: read
74
+ steps:
75
+ - name: Download all wheel artifacts
76
+ uses: actions/download-artifact@v4
77
+ with:
78
+ path: dist
79
+ pattern: axim-memory-wheel-*
80
+ merge-multiple: true
81
+
82
+ - name: Inspect distribution artifacts
83
+ run: |
84
+ ls -la dist/
85
+ pip install twine
86
+ twine check dist/*
87
+
88
+ - name: Publish to PyPI
89
+ uses: pypa/gh-action-pypi-publish@release/v1
90
+ with:
91
+ packages-dir: dist/
92
+ skip-existing: true
93
+ password: ${{ secrets.PYPI_API_TOKEN }}
@@ -0,0 +1,40 @@
1
+ name: CodeQL
2
+
3
+ # GitHub CodeQL: deep semantic SAST covering path traversal, SQL injection,
4
+ # format string injection, unsafe deserialization, and memory-corruption classes.
5
+ on:
6
+ push:
7
+ pull_request:
8
+ schedule:
9
+ # Weekly scan for new vulnerability detections
10
+ - cron: "0 6 * * 1"
11
+
12
+ permissions:
13
+ contents: read
14
+
15
+ jobs:
16
+ analyze:
17
+ name: Analyze (python)
18
+ runs-on: ubuntu-latest
19
+ permissions:
20
+ contents: read
21
+ security-events: write
22
+ steps:
23
+ - name: Checkout repository
24
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
25
+ with:
26
+ persist-credentials: false
27
+
28
+ - name: Initialize CodeQL
29
+ uses: github/codeql-action/init@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4.39.1
30
+ with:
31
+ languages: python
32
+ queries: security-extended,security-and-quality
33
+
34
+ - name: Autobuild
35
+ uses: github/codeql-action/autobuild@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4.39.1
36
+
37
+ - name: Perform CodeQL Analysis
38
+ uses: github/codeql-action/analyze@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4.39.1
39
+ with:
40
+ category: "/language:python"
@@ -0,0 +1,63 @@
1
+ name: Security Scan
2
+
3
+ # Bandit AST security scanner: blocks command injection (subprocess/shell=True),
4
+ # code injection (eval/exec), SQLi, and deserialization injection on every push & PR.
5
+ on:
6
+ push:
7
+ pull_request:
8
+
9
+ permissions:
10
+ contents: read
11
+
12
+ jobs:
13
+ bandit:
14
+ name: Bandit AST Security Scanner
15
+ runs-on: ubuntu-latest
16
+ permissions:
17
+ contents: read
18
+ security-events: write
19
+ steps:
20
+ - name: Checkout repository
21
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
22
+ with:
23
+ persist-credentials: false
24
+
25
+ - name: Set up Python
26
+ uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
27
+ with:
28
+ python-version: "3.12"
29
+
30
+ - name: Install Bandit
31
+ run: python -m pip install -r .github/security-requirements.txt
32
+
33
+ - name: Run Bandit security scan
34
+ # Untrusted event context is never interpolated into this script;
35
+ # the scan target is a static, trusted literal path.
36
+ run: |
37
+ bandit -r axim_memory -f sarif -o bandit.sarif --exit-zero
38
+ bandit -r axim_memory -ll
39
+
40
+ - name: Upload Bandit results to GitHub Security tab
41
+ uses: github/codeql-action/upload-sarif@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4.39.1
42
+ with:
43
+ sarif_file: bandit.sarif
44
+
45
+ zizmor:
46
+ name: Zizmor Actions Security Auditor
47
+ runs-on: ubuntu-latest
48
+ permissions:
49
+ contents: read
50
+ steps:
51
+ - name: Checkout repository
52
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
53
+ with:
54
+ persist-credentials: false
55
+
56
+ - name: Run zizmor audit
57
+ # Audits workflows for script injection, unpinned actions, and
58
+ # over-privileged tokens without interpolating event data in a shell.
59
+ uses: zizmorcore/zizmor-action@45d7276c9ca790aabd705e31ca99c6185c3e76dd # v0.8.1
60
+ with:
61
+ advanced-security: false
62
+ inputs: .github/workflows
63
+ persona: regular
@@ -0,0 +1,15 @@
1
+ __pycache__/
2
+ *.pyc
3
+ *.egg-info/
4
+ *.egg
5
+ build/
6
+ dist/
7
+ target/
8
+ *.so
9
+ *.dylib
10
+ *.pyd
11
+ .pytest_cache/
12
+ .coverage
13
+ *.swp
14
+ *.DS_Store
15
+ .env