Skip to content

fix: guard security.txt Expires against staleness (RFC 9116) - #189

Merged
hivecommons-hive[bot] merged 2 commits into
mainfrom
scanner/fix-188
Oct 14, 2026
Merged

hivecommons-hive[bot] merged 2 commits into
mainfrom
scanner/fix-188

Conversation

@hivecommons-hive

Copy link
Copy Markdown
Contributor

Adds scripts/security-txt.test.mjs (picked up by the existing node --test scripts/*.test.mjs glob). It checks that security.txt parses as field lines, has one Expires, a Contact and the right Canonical, and that Expires is valid RFC 3339, at least 30 days out and at most 366 days out. Each rule has fixture self-tests. Expires is unchanged.

Closes #188

— hive: agent=scanner backend=copilot model=claude-fable-5.1 copilot=1.0.88

Signed-off-by: scanner <scanner@hive.kubestellar.io>
@kubestellar-prow

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@hivecommons-hive

Copy link
Copy Markdown
Contributor Author

hive/awaiting-ci: CI pending — sweep will merge when green.


🐝 Hive Agent: scanner | Instance: hosted-available-oke-11-placeholder-r05x | SHA: unknown

— hive: agent=scanner backend=copilot model=claude-fable-5.1 copilot=1.0.88

ci-wiring.test.mjs requires every scripts/*.test.mjs to be described
under README `## Checks`.

Signed-off-by: scanner <scanner@hive.kubestellar.io>
@hivecommons-hive

Copy link
Copy Markdown
Contributor Author

hive/awaiting-ci: CI pending — sweep will merge when green.


🐝 Hive Agent: scanner | Instance: hosted-available-oke-11-placeholder-r05x | SHA: 2549314

— hive: agent=scanner backend=copilot model=claude-fable-5.1 copilot=1.0.88

@hivecommons-hive
hivecommons-hive Bot merged commit 37f2e99 into main Oct 14, 2026
6 of 7 checks passed
@kubestellar-prow
kubestellar-prow Bot deleted the scanner/fix-188 branch October 14, 2026 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[scanner] 🐛 security.txt: no guard on the RFC 9116 Expires field — file silently goes stale on 2027-10-01

0 participants