Skip to content

Commit ee31f03

Browse files
committed
fix(rsr-audit): de-brittle SECURITY response-timeline check
Category-2's SECURITY.md check required the exact literal substring "24 hours", failing repos that document the same SLA differently ("Response Timeline" heading, "48 hours", "business day", etc.). Broaden to a basic-grep alternation covering the common phrasings, mirroring #390's format/case de-brittling. Licence-content checks untouched. standards' own SECURITY.md (Response Timeline / 48 hours) now passes where it previously failed — one of the 3 residual fails #390 flagged. Regenerate REGISTRY.a2ml: rhodium-standard-repositories/ is a registered spec home, so editing rsr-audit.sh changes its content-addressed hash. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019awZjBD1qx61tvmEuEKNpn
1 parent beddef6 commit ee31f03

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.machine_readable/REGISTRY.a2ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ name = "RSR — Rhodium Standard Repositories"
216216
stream = "governance"
217217
home = "rhodium-standard-repositories/"
218218
canonical_doc = "rhodium-standard-repositories/README.adoc"
219-
source_hash = "sha256:2d4e465bee215808306f28053a84d2f146a7fb7f6e6e3780e5d6f4c1d18c7404"
219+
source_hash = "sha256:01e6373ae01939b5ed24c72e1c4ace7ea55559b3fc765a956bc2e7ad722b244b"
220220
route = "the repository-compliance standard every repo is graded against"
221221

222222
[[spec]]

rhodium-standard-repositories/rsr-audit.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,9 @@ audit_category_2_documentation() {
246246
# SECURITY.md validation
247247
if [[ -f "$REPO_PATH/SECURITY.md" ]]; then
248248
check_file_contains "SECURITY.md" "Reporting" "SECURITY.md has vulnerability reporting"
249-
check_file_contains "SECURITY.md" "24 hours" "SECURITY.md has response timeline"
249+
# Estate-tolerant: credit any documented response SLA phrasing, not just
250+
# the literal "24 hours" (repos use "Response Timeline", "business day", etc.)
251+
check_file_contains "SECURITY.md" "24 hours\\|48 hours\\|72 hours\\|business day\\|[Rr]esponse [Tt]ime\\|SLA" "SECURITY.md has response timeline"
250252
fi
251253

252254
# CONTRIBUTING.md validation (TPCF)

0 commit comments

Comments
 (0)