Update repo_health.yml

This commit is contained in:
2025-12-30 16:12:13 -06:00
parent 49dac3b01f
commit f3c18e3b1a

View File

@@ -505,25 +505,25 @@ jobs:
export CONTENT_WARNINGS="$(printf '%s\n' "${content_warnings[@]:-}")" export CONTENT_WARNINGS="$(printf '%s\n' "${content_warnings[@]:-}")"
report_json="$(python3 - <<'PY' report_json="$(python3 - <<'PY'
import json import json
import os import os
profile = os.environ.get('PROFILE_RAW') or 'all' profile = os.environ.get('PROFILE_RAW') or 'all'
missing_required = os.environ.get('MISSING_REQUIRED', '').splitlines() if os.environ.get('MISSING_REQUIRED') else [] missing_required = os.environ.get('MISSING_REQUIRED', '').splitlines() if os.environ.get('MISSING_REQUIRED') else []
missing_optional = os.environ.get('MISSING_OPTIONAL', '').splitlines() if os.environ.get('MISSING_OPTIONAL') else [] missing_optional = os.environ.get('MISSING_OPTIONAL', '').splitlines() if os.environ.get('MISSING_OPTIONAL') else []
content_warnings = os.environ.get('CONTENT_WARNINGS', '').splitlines() if os.environ.get('CONTENT_WARNINGS') else [] content_warnings = os.environ.get('CONTENT_WARNINGS', '').splitlines() if os.environ.get('CONTENT_WARNINGS') else []
out = { out = {
'profile': profile, 'profile': profile,
'missing_required': [x for x in missing_required if x], 'missing_required': [x for x in missing_required if x],
'missing_optional': [x for x in missing_optional if x], 'missing_optional': [x for x in missing_optional if x],
'content_warnings': [x for x in content_warnings if x], 'content_warnings': [x for x in content_warnings if x],
} }
print(json.dumps(out, indent=2)) print(json.dumps(out, indent=2))
PY PY
)" )"
{ {
printf '%s\n' '### Guardrails repository health' printf '%s\n' '### Guardrails repository health'