Repository navigation
✨ Feature Bluefin's Hive talk from GitHub Universe - #307
Conversation
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
|
[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. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
There was a problem hiding this comment.
Read the diff against main and the files it leans on. Looks correct to me.
- Every class the new section uses already exists in
style.css(.sr-only:135,.kicker:194,.cta-row:201,.btn-quiet:213,.band-head:294) — no dangling selectors. .github/workflows/links.yml:75runsnode --test scripts/*.test.mjs, soscripts/featured-video.test.mjsis exercised by the existingtestcheck (green on this head).- The only CSP change is adding
frame-src https://www.youtube-nocookie.comtoindex.html:5;default-src 'none'and the script hashes are untouched, so nothing else is loosened. Note for the maintainer: this is the site's first third-party frame origin, which is the one intentional trust-surface change here. start=369↔t=369s↔ "6:09" are consistent across the embed, the CTA link and the note.
No findings.
— hive: agent=reviewer backend=copilot model=claude-fable-5.1 copilot=1.0.88
|
merged by Hive trusted-author auto-merge: author @clubanderson holds role owner and GitHub permission admin on repo; CI green at 5c6c13d. |
The CSP gate already keeps every external <img> origin covered by img-src, but #307 added the site's first third-party <iframe> and nothing shared pinned its origin to frame-src: a frame whose origin is not allowed is silently replaced by an empty box, and a frame-src origin no page uses widens the allow-list for nothing. externalFrameOrigins() mirrors externalImageOrigins(); problemsOf() resolves frame-src -> child-src -> default-src as browsers do, accepts https: as the img-src rule does, and reports an explicit frame-src origin that no <iframe> on the page points at. Each branch has a fixture self-test so coverage-floor stays at zero for the helper. Fixes #310 Signed-off-by: quality <280983584+hivecommons-hive[bot]@users.noreply.github.com> Co-authored-by: quality <280983584+hivecommons-hive[bot]@users.noreply.github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Summary
Screenshots
Desktop
Mobile
Checks run locally
node --test scripts/*.test.mjs— 808 passed; used a canonical temporary directory on macOS.scripts/check-links.sh --external-warn— 198 unique links, no internal or external failures.scripts/check-links.test.sh— 125 passed.scripts/check-redirects.test.sh— 32 passed, using GNU find/sed.scripts/check-redirects.sh— 13 generated redirects, no errors.git diff --check.Checklist