ci: add advanced security tests job
Some checks failed
CI / Lint & Format (push) Failing after 16s
CI / Unit Tests (push) Has been skipped
CI / Memory Leak Check (push) Has been skipped
CI / SBOM Generation (push) Has been skipped
CI / Security Scan (push) Successful in 19s
CI / Security Tests (push) Has been skipped
CI / Advanced Security Tests (push) Has been skipped
Some checks failed
CI / Lint & Format (push) Failing after 16s
CI / Unit Tests (push) Has been skipped
CI / Memory Leak Check (push) Has been skipped
CI / SBOM Generation (push) Has been skipped
CI / Security Scan (push) Successful in 19s
CI / Security Tests (push) Has been skipped
CI / Advanced Security Tests (push) Has been skipped
This commit is contained in:
@@ -164,6 +164,33 @@ jobs:
|
|||||||
- name: Audit logging tests
|
- name: Audit logging tests
|
||||||
run: pytest tests/test_audit.py -v --tb=short
|
run: pytest tests/test_audit.py -v --tb=short
|
||||||
|
|
||||||
|
security-advanced:
|
||||||
|
name: Advanced Security Tests
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: [lint, security]
|
||||||
|
container:
|
||||||
|
image: python:3.11-slim
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Setup and checkout
|
||||||
|
run: |
|
||||||
|
apt-get update -qq && apt-get install -yqq --no-install-recommends git >/dev/null
|
||||||
|
git clone --depth 1 --branch "${GITHUB_REF_NAME}" \
|
||||||
|
"https://oauth2:${{ github.token }}@${GITHUB_SERVER_URL#https://}/${GITHUB_REPOSITORY}.git" .
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
pip install -q -r requirements.txt
|
||||||
|
|
||||||
|
- name: CLI security audit
|
||||||
|
run: python tests/security/cli_security_audit.py
|
||||||
|
|
||||||
|
- name: DoS memory exhaustion tests
|
||||||
|
run: python tests/security/dos_memory_test.py
|
||||||
|
|
||||||
|
- name: Race condition tests
|
||||||
|
run: python tests/security/race_condition_test.py
|
||||||
|
|
||||||
memory:
|
memory:
|
||||||
name: Memory Leak Check
|
name: Memory Leak Check
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
Reference in New Issue
Block a user