@@ -33,20 +33,20 @@ jobs:
3333 find scripts/ -name "*.sh" -type f | while read script; do
3434 echo "Checking: $script"
3535 shellcheck -x "$script" || {
36- echo "❌ Shellcheck failed for: $script"
36+ echo "[FAIL] Shellcheck failed for: $script"
3737 exit 1
3838 }
3939 done
4040
41- echo "✅ All shell scripts passed shellcheck"
41+ echo "[PASS] All shell scripts passed shellcheck"
4242
4343 - name : Check script permissions
4444 run : |
4545 echo "Checking script permissions..."
4646
4747 find scripts/ -name "*.sh" -type f | while read script; do
4848 if [ ! -x "$script" ]; then
49- echo "⚠️ WARNING: $script is not executable"
49+ echo "[WARNING] WARNING: $script is not executable"
5050 echo " Run: chmod +x $script"
5151 fi
5252 done
8787 echo "Testing validate_critical_restrictions.sh..."
8888 bash scripts/validate_critical_restrictions.sh
8989 else
90- echo "⚠️ WARNING: validate_critical_restrictions.sh not found"
90+ echo "[WARNING] WARNING: validate_critical_restrictions.sh not found"
9191 fi
9292
9393 - name : Test validate_security_config.sh
9696 echo "Testing validate_security_config.sh..."
9797 bash scripts/validate_security_config.sh
9898 else
99- echo "⚠️ WARNING: validate_security_config.sh not found"
99+ echo "[WARNING] WARNING: validate_security_config.sh not found"
100100 fi
101101
102102 - name : Test validate_database_router.sh
@@ -105,7 +105,7 @@ jobs:
105105 echo "Testing validate_database_router.sh..."
106106 bash scripts/validate_database_router.sh
107107 else
108- echo "⚠️ WARNING: validate_database_router.sh not found"
108+ echo "[WARNING] WARNING: validate_database_router.sh not found"
109109 fi
110110
111111 validate-terraform :
@@ -199,12 +199,12 @@ jobs:
199199 find . -name "*.yml" -o -name "*.yaml" | while read yaml_file; do
200200 echo "Checking: $yaml_file"
201201 python -c "import yaml; yaml.safe_load(open('$yaml_file'))" || {
202- echo "❌ Invalid YAML: $yaml_file"
202+ echo "[FAIL] Invalid YAML: $yaml_file"
203203 exit 1
204204 }
205205 done
206206
207- echo "✅ All YAML files are valid"
207+ echo "[PASS] All YAML files are valid"
208208
209209 - name : Validate JSON files
210210 run : |
@@ -213,23 +213,23 @@ jobs:
213213 find . -name "*.json" | while read json_file; do
214214 echo "Checking: $json_file"
215215 python -c "import json; json.load(open('$json_file'))" || {
216- echo "❌ Invalid JSON: $json_file"
216+ echo "[FAIL] Invalid JSON: $json_file"
217217 exit 1
218218 }
219219 done
220220
221- echo "✅ All JSON files are valid"
221+ echo "[PASS] All JSON files are valid"
222222
223223 - name : Check for secrets in code
224224 run : |
225225 echo "Scanning for hardcoded secrets..."
226226
227227 # Simple pattern matching for common secrets
228228 if grep -r -E "(password|secret|api_key|token).*=.*['\"].*['\"]" api/ scripts/ | grep -v "test" | grep -v ".pyc"; then
229- echo "⚠️ WARNING: Potential hardcoded secrets found"
229+ echo "[WARNING] WARNING: Potential hardcoded secrets found"
230230 echo "Review the matches above and ensure they are not real secrets"
231231 else
232- echo "✅ No obvious hardcoded secrets found"
232+ echo "[PASS] No obvious hardcoded secrets found"
233233 fi
234234
235235 test-health-check :
@@ -285,11 +285,11 @@ jobs:
285285 echo "Testing health check endpoint..."
286286
287287 curl -f http://localhost:8000/api/health || {
288- echo "❌ Health check endpoint failed"
288+ echo "[FAIL] Health check endpoint failed"
289289 exit 1
290290 }
291291
292- echo "✅ Health check endpoint working"
292+ echo "[PASS] Health check endpoint working"
293293
294294 - name : Stop server
295295 if : always()
@@ -321,8 +321,8 @@ jobs:
321321 [ "${{ needs.validate-docker.result }}" != "success" ] || \
322322 [ "${{ needs.validate-configurations.result }}" != "success" ] || \
323323 [ "${{ needs.test-health-check.result }}" != "success" ]; then
324- echo "❌ Infrastructure CI FAILED"
324+ echo "[FAIL] Infrastructure CI FAILED"
325325 exit 1
326326 fi
327327
328- echo "✅ Infrastructure CI PASSED"
328+ echo "[PASS] Infrastructure CI PASSED"
0 commit comments