Skip to content

Commit 1e4fa57

Browse files
deps: update safety requirement to >=3.7.0
- Updates `requirements.txt` to require `safety>=3.7.0` (was `>=2.0.0`). - Updates `requirements-dev.txt` to match. - Updates `requirements-py311.txt` lock file to `safety==3.7.0`. - Updates `scripts/validate-dependencies.sh` to support Python 3.12 (current env). Verified with `scripts/validate-dependencies.sh` and `scripts/check-compliance.sh`. Supersedes PR #108.
1 parent 5f1894a commit 1e4fa57

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ testinfra
1212

1313
# Security tools for CI/CD
1414
bandit>=1.7.0
15-
safety>=2.0.0
15+
safety>=3.7.0
1616

1717
# Container testing (Podman specific)
1818
molecule-podman

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ passlib>=1.7.4
2323

2424
# Security tools
2525
bandit>=1.7.0
26-
safety>=2.0.0
26+
safety>=3.7.0
2727

2828
# Development and testing tools
2929
pre-commit>=2.15.0

scripts/validate-dependencies.sh

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,17 @@ main() {
8585

8686
check_python_dependencies() {
8787
log_info "Checking Python dependencies..."
88-
89-
# Check if Python 3.11 is available
90-
if command -v python3.11 &> /dev/null; then
88+
89+
# Check for Python versions (3.12, 3.11, 3.9)
90+
if command -v python3.12 &> /dev/null; then
91+
PYTHON_VERSION=$(python3.12 --version)
92+
log_success "Python 3.12 found: $PYTHON_VERSION"
93+
elif command -v python3.11 &> /dev/null; then
9194
PYTHON_VERSION=$(python3.11 --version)
9295
log_success "Python 3.11 found: $PYTHON_VERSION"
9396
elif command -v python3.9 &> /dev/null; then
9497
PYTHON_VERSION=$(python3.9 --version)
95-
log_warning "Python 3.9 found (recommend 3.11): $PYTHON_VERSION"
98+
log_warning "Python 3.9 found (recommend 3.11+): $PYTHON_VERSION"
9699
else
97100
log_error "No compatible Python version found"
98101
return 1
@@ -165,7 +168,7 @@ generate_dependency_report() {
165168
"validation_results": {
166169
"python": {
167170
"version": "${PYTHON_VERSION:-unknown}",
168-
"status": "$(command -v python3.11 &> /dev/null && echo "ok" || echo "warning")"
171+
"status": "$({ command -v python3.12 || command -v python3.11; } &> /dev/null && echo "ok" || echo "warning")"
169172
},
170173
"ansible": {
171174
"installed": $(command -v ansible &> /dev/null && echo "true" || echo "false"),

0 commit comments

Comments
 (0)