Skip to content

Serve topic logos from explore-feed.github.com#5158

Merged
kenyonj merged 1 commit intomainfrom
kenyonj/topics-logo-explore-feed-host
May 7, 2026
Merged

Serve topic logos from explore-feed.github.com#5158
kenyonj merged 1 commit intomainfrom
kenyonj/topics-logo-explore-feed-host

Conversation

@kenyonj
Copy link
Copy Markdown
Contributor

@kenyonj kenyonj commented May 7, 2026

Summary

The topics block in feed.json.liquid emits logo URLs pointing at https://github.com/github/explore/blob/main/.../...?raw=true. github/github's CSP img-src doesn't allow github.com as an arbitrary image host, so on admin views like https://admin.github.com/biztools/topics the topic logos fail to render.

The collections block right above already uses {{ site.url }} (which is https://explore-feed.github.com per CNAME) — switch the topics block to the same pattern so logos are served from the same canonical asset host as collection images.

Companion change

A companion PR in github/github adds explore-feed.github.com to the CSP img-src allowlist (alongside the existing customer-stories-feed.github.com and spotlights-feed.github.com entries). Either PR can land first — neither host works today.

Test plan

  • After this is published, hit https://explore-feed.github.com/feed.json and confirm topic logo URLs are prefixed with https://explore-feed.github.com/... (no more github.com/.../blob/main/...?raw=true).
  • Once the github/github CSP PR also ships, confirm topic logos render on https://admin.github.com/biztools/topics.

The topics block was emitting logo URLs as
`https://github.com/github/explore/blob/main/...?raw=true`, which
github/github's CSP doesn't allow as an img-src on biztools pages
(e.g. https://admin.github.com/biztools/topics) — so the logos fail
to render.

The collections block above already uses `{{ site.url }}` (which is
https://explore-feed.github.com per CNAME), and that host is the
intended canonical home for these assets. Switch the topics block to
the same pattern. The companion CSP allowlist change in github/github
adds `explore-feed.github.com` to img-src.
Copilot AI review requested due to automatic review settings May 7, 2026 19:05
@kenyonj kenyonj requested a review from a team as a code owner May 7, 2026 19:05
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Explore feed JSON so topic logo URLs are served from the canonical Explore feed host (explore-feed.github.com) instead of linking to github.com/.../blob/.../?raw=true, which is blocked by GitHub’s CSP on admin surfaces.

Changes:

  • Switch topics[].logo URL generation in feed.json.liquid to use {{ site.url }} (matching the existing collections image pattern).
Show a summary per file
File Description
feed.json.liquid Changes topic logo URLs to be hosted on explore-feed.github.com, aligning with how collection images are emitted.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 1/1 changed files
  • Comments generated: 0

@kenyonj kenyonj merged commit fc93e86 into main May 7, 2026
16 checks passed
@kenyonj kenyonj deleted the kenyonj/topics-logo-explore-feed-host branch May 7, 2026 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants