Update repo_health.yml
This commit is contained in:
46
.github/workflows/repo_health.yml
vendored
46
.github/workflows/repo_health.yml
vendored
@@ -537,29 +537,29 @@ jobs:
|
||||
export CONTENT_WARNINGS="$(printf '%s\n' "${content_warnings[@]:-}")"
|
||||
|
||||
report_json="$(python3 - <<'PY'
|
||||
import json
|
||||
import os
|
||||
profile = os.environ.get('PROFILE_RAW') or 'all'
|
||||
required_files = ["README.md","LICENSE","CHANGELOG.md","CONTRIBUTING.md","CODE_OF_CONDUCT.md"]
|
||||
optional_files = ["SECURITY.md","GOVERNANCE.md",".editorconfig",".gitattributes",".gitignore"]
|
||||
required_paths = [".github/workflows","scripts","docs","dev"]
|
||||
missing_required = os.environ.get('MISSING_REQUIRED','').split('\n') if os.environ.get('MISSING_REQUIRED') else []
|
||||
missing_optional = os.environ.get('MISSING_OPTIONAL','').split('\n') if os.environ.get('MISSING_OPTIONAL') else []
|
||||
content_warnings = os.environ.get('CONTENT_WARNINGS','').split('\n') if os.environ.get('CONTENT_WARNINGS') else []
|
||||
out = {
|
||||
"profile": profile,
|
||||
"checked": {
|
||||
"required_files": required_files,
|
||||
"optional_files": optional_files,
|
||||
"required_paths": required_paths,
|
||||
},
|
||||
"missing_required": [x for x in missing_required if x],
|
||||
"missing_optional": [x for x in missing_optional if x],
|
||||
"content_warnings": [x for x in content_warnings if x],
|
||||
}
|
||||
print(json.dumps(out, indent=2))
|
||||
PY
|
||||
)"
|
||||
import json
|
||||
import os
|
||||
profile = os.environ.get('PROFILE_RAW') or 'all'
|
||||
required_files = ["README.md","LICENSE","CHANGELOG.md","CONTRIBUTING.md","CODE_OF_CONDUCT.md"]
|
||||
optional_files = ["SECURITY.md","GOVERNANCE.md",".editorconfig",".gitattributes",".gitignore"]
|
||||
required_paths = [".github/workflows","scripts","docs","dev"]
|
||||
missing_required = os.environ.get('MISSING_REQUIRED','').split('\n') if os.environ.get('MISSING_REQUIRED') else []
|
||||
missing_optional = os.environ.get('MISSING_OPTIONAL','').split('\n') if os.environ.get('MISSING_OPTIONAL') else []
|
||||
content_warnings = os.environ.get('CONTENT_WARNINGS','').split('\n') if os.environ.get('CONTENT_WARNINGS') else []
|
||||
out = {
|
||||
"profile": profile,
|
||||
"checked": {
|
||||
"required_files": required_files,
|
||||
"optional_files": optional_files,
|
||||
"required_paths": required_paths,
|
||||
},
|
||||
"missing_required": [x for x in missing_required if x],
|
||||
"missing_optional": [x for x in missing_optional if x],
|
||||
"content_warnings": [x for x in content_warnings if x],
|
||||
}
|
||||
print(json.dumps(out, indent=2))
|
||||
PY
|
||||
)"
|
||||
|
||||
{
|
||||
echo "### Guardrails: repository health"
|
||||
|
||||
Reference in New Issue
Block a user