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[@]:-}")"
|
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'
|
||||||
required_files = ["README.md","LICENSE","CHANGELOG.md","CONTRIBUTING.md","CODE_OF_CONDUCT.md"]
|
required_files = ["README.md","LICENSE","CHANGELOG.md","CONTRIBUTING.md","CODE_OF_CONDUCT.md"]
|
||||||
optional_files = ["SECURITY.md","GOVERNANCE.md",".editorconfig",".gitattributes",".gitignore"]
|
optional_files = ["SECURITY.md","GOVERNANCE.md",".editorconfig",".gitattributes",".gitignore"]
|
||||||
required_paths = [".github/workflows","scripts","docs","dev"]
|
required_paths = [".github/workflows","scripts","docs","dev"]
|
||||||
missing_required = os.environ.get('MISSING_REQUIRED','').split('\n') if os.environ.get('MISSING_REQUIRED') else []
|
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 []
|
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 []
|
content_warnings = os.environ.get('CONTENT_WARNINGS','').split('\n') if os.environ.get('CONTENT_WARNINGS') else []
|
||||||
out = {
|
out = {
|
||||||
"profile": profile,
|
"profile": profile,
|
||||||
"checked": {
|
"checked": {
|
||||||
"required_files": required_files,
|
"required_files": required_files,
|
||||||
"optional_files": optional_files,
|
"optional_files": optional_files,
|
||||||
"required_paths": required_paths,
|
"required_paths": required_paths,
|
||||||
},
|
},
|
||||||
"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
|
||||||
)"
|
)"
|
||||||
|
|
||||||
{
|
{
|
||||||
echo "### Guardrails: repository health"
|
echo "### Guardrails: repository health"
|
||||||
|
|||||||
Reference in New Issue
Block a user