showcase
- v0.2.4
- 37 commits
- 1 branch
- 6 tags
- updated
- CI 2/2
fix: security pass — csp-safe tables, stricter registry refs, no partial builds
Showing 13 changed files with 184 additions and 17 deletions.
README.md
+1 −0
@@ -79,6 +79,7 @@ compose.yaml example deployment7979 and the build order.8080- [docs/decisions.md](docs/decisions.md): choices made while building.8181- [docs/theme.md](docs/theme.md): how the look follows danieldaum.net.82- [docs/security.md](docs/security.md): each security rule mapped to code and tests.82838384## Licences8485
docs/security.mdadded
+58 −0
@@ -0,0 +1,58 @@1# Security review23Step 10 of the spec. Each rule and each "done when" item maps to the code that4enforces it and the test that proves it. Run them all with `just test`.56## Spec security rules78| # | Rule | Enforced in | Tested by |9|---|------|-------------|-----------|10| 1 | Generator uses no token, so it can only see public data | `gitea.Client` never sets credentials and refuses redirects. `gitx` runs git with no prompt, no credential helper, no user config and http(s) only. A repo the API marks private is refused anyway. | `fakeGitea` fails any request that carries `Authorization` or `Cookie`; `TestOutputIsSafe` |11| 2 | One allowlist (`config.json`) | Builder iterates `cfg.Repos`. Proxy checks `HasRepo` / `HasImage`. Packages are filtered to allowlisted repos and images. | `TestSiteGolden` (missing and private repos absent), `TestProxyRoutes` (unlisted repo and image) |12| 3 | Router default is 404, with only the listed routes | `server.route` and `proxyRoute`. Dot segments, `//`, `\` and NUL are refused before any file lookup. | `TestRoutes`, `TestProxyRoutes` |13| 4 | Realm rewrite, strip `Set-Cookie` and Gitea headers, no client `Authorization`/`Cookie` on git | `newProxy` Rewrite and ModifyResponse. Non-Bearer challenges are dropped too, so git never prompts. | `TestProxyRoutes`, `TestProxyResponses` |14| 5 | Safe rendering | goldmark without raw HTML, dangerous URLs blanked, `html/template` everywhere, highlighter escapes every token, 512 KB / binary limits, README images relative or https only | `TestSiteGolden` (forbidden strings), `TestOutputIsSafe` (no `<script`, inline `style=` or `on*=` in any page) |15| 6 | Security headers; raw never rendered as HTML | `route` sets the CSP, `nosniff` and `no-referrer` on every response. `raw` serves allowed images, `text/plain` or an attachment. Release assets are always attachments. | `TestRoutes` (headers on every case, raw SVG and HTML are `text/plain`), `TestProxyResponses` |16| 7 | Container: non-root, read-only, no caps, no-new-privileges, only `/data` writable | `Dockerfile` (`USER 10001`, `HOME=/data`), `compose.yaml` | `hadolint`; container not yet run (see open items) |17| 8 | Trust `X-Forwarded-*` only from Pangolin | `clientIP` uses `trusted_proxies`. The proxy strips `X-Forwarded-*` and `Forwarded` toward Gitea. | `TestClientIP`, `TestProxyRoutes` |18| 9 | Cap `git-upload-pack` bodies, reject other bodies | 10 MB `MaxBytesReader`. A GET or HEAD with a body gets a 400. Proxy GET routes require no body. | `TestProxyResponses`, `TestBodyRejected` |1920## "Done when"2122| Item | Status |23|------|--------|24| `git clone https://daum.dev/<repo>.git` works and `git push` fails | Proven with real git through the server: `TestCloneAndPush`. The fake Gitea there accepts pushes, so the refusal is ours. |25| `docker pull` works anonymously and `docker push` fails | Push methods and push scopes are refused (`TestProxyRoutes`). The pull path is unit-tested but **not yet run against real Gitea**. |26| `/api/v1/…`, `/user/login`, `/daniel/<repo>` and unlisted repos are 404 | `TestRoutes`, `TestProxyRoutes` |27| A private repo in config never appears anywhere | `TestOutputIsSafe` scans every output file, raw files included. A private, missing or renamed repo is skipped. Any other error fails the whole build, so a flaky API can't publish a site with repos missing. |28| Pages pass the CSP with no console errors and need no JS | No scripts anywhere. `TestOutputIsSafe` rules out inline styles and handlers; it caught goldmark's table-alignment `style=`, which is now an `align` attribute. Fonts, CSS and avatar are same-origin. **Not yet checked in a real browser.** |2930## Fixed during this review3132- GFM table alignment rendered `style="text-align:…"`, which the CSP blocks.33 It is now an `align` attribute.34- Registry routes: blob refs must be `sha256:<64 hex>`, and manifest refs a35 valid tag or digest, so paths like `blobs/uploads` never reach Gitea.36- `WWW-Authenticate` from Gitea is passed only when it is the registry's37 Bearer challenge (with the realm rewritten). Basic challenges are dropped, so38 git and docker never prompt for credentials that would go nowhere.39- A repo is skipped only when Gitea says it's not found or private. Any other40 error fails the build and the previous one stays live.4142## Accepted risks4344- PR and release bodies can embed https images (the CSP allows `img-src45 https:`). Those are tracking-pixel capable, but it's your own repos'46 content.47- A repo with a file `x` and a directory `x.html` side by side makes its blob48 pages collide, and the build fails. It only affects your own repos and49 shows up as a build error, never as wrong content.50- Builds load whole blobs (up to 50 MB) and patches into memory. That's fine51 for your own repos, but it isn't a defence against hostile repos.5253## Open items (need the real environment)54551. Run the image on the host: read-only root, uid 10001, healthcheck.562. `docker pull daum.dev/daniel/<image>` through Pangolin and Cloudflare.573. Open pages in a browser and confirm there are no CSP console errors.584. Check Gitea's settings allow anonymous reads (`REQUIRE_SIGNIN_VIEW = false`).
internal/build/build.go
+4 −1
@@ -76,10 +76,13 @@ func (b *Builder) Render(ctx context.Context, dir string) error {7676 days, since := map[string]int{}, b.Now().AddDate(-1, 0, -7)7777 for _, name := range b.Cfg.Repos {7878 r, err := b.loadRepo(ctx, name)79 if err != nil {79 if errors.Is(err, gitea.ErrNotFound) { // private, renamed or deleted: never shown8080 b.Log.Warn("skipping repo", "repo", name, "err", err)8181 continue8282 }83 if err != nil { // anything else may be transient: keep the last good build84 return fmt.Errorf("%s: %w", name, err)85 }8386 if r.Head != "" {8487 if err := r.Git.CommitDays(ctx, r.Head, since, days); err != nil {8588 return fmt.Errorf("%s: %w", name, err)
internal/build/safety_test.goadded
+57 −0
@@ -0,0 +1,57 @@1package build23import (4 "context"5 "io/fs"6 "os"7 "path/filepath"8 "regexp"9 "strings"10 "testing"11)1213// Things that must never appear in any rendered page: they would break the14// CSP (inline style or script, event handlers) or leak private data.15var (16 inlineStyle = regexp.MustCompile(`<[a-zA-Z][^>]*\sstyle=`)17 eventHandler = regexp.MustCompile(`<[a-zA-Z][^>]*\son[a-z]+=`)18 scriptTag = regexp.MustCompile(`(?i)<script`)19)2021func TestOutputIsSafe(t *testing.T) {22 dir := t.TempDir()23 if err := testBuilder(t).Render(context.Background(), dir); err != nil {24 t.Fatal(err)25 }26 pages := 027 filepath.WalkDir(dir, func(p string, d fs.DirEntry, err error) error {28 if err != nil || d.IsDir() {29 return err30 }31 rel, _ := filepath.Rel(dir, p)32 b, _ := os.ReadFile(p)33 s := string(b)34 // private repo and data from it, anywhere, including raw files35 for _, bad := range []string{"leaky", "should never render", "should-never-render", "tailnet.example"} {36 if strings.Contains(s, bad) {37 t.Errorf("%s contains %q", rel, bad)38 }39 }40 if !strings.HasSuffix(p, ".html") || strings.Contains(rel, "/raw/") {41 return nil42 }43 pages++44 for name, re := range map[string]*regexp.Regexp{"inline style": inlineStyle, "event handler": eventHandler, "script": scriptTag} {45 if m := re.FindString(s); m != "" {46 t.Errorf("%s has an %s: %s", rel, name, m)47 }48 }49 return nil50 })51 if pages < 20 {52 t.Errorf("only %d pages checked", pages)53 }54 if _, err := os.Stat(filepath.Join(dir, "leaky")); err == nil {55 t.Error("private repo directory exists")56 }57}
internal/gitea/gitea.go
+1 −1
@@ -135,7 +135,7 @@ func (c *Client) Repo(ctx context.Context, name string) (*Repo, error) {135135 return nil, err136136 }137137 if r.Private { // anonymous calls should never see one; refuse anyway138 return nil, fmt.Errorf("gitea: repo %s is private", name)138 return nil, fmt.Errorf("repo %s is private: %w", name, ErrNotFound)139139 }140140 return &r, nil141141}
internal/render/markdown.go
+4 −1
@@ -21,7 +21,10 @@ import (2121// "/repo-a"); images that aren't relative or https are dropped.2222func Markdown(src []byte, base, dir string) (template.HTML, error) {2323 md := goldmark.New(24 goldmark.WithExtensions(extension.GFM),24 // GFM, but table alignment as align attributes: the default inline25 // style attributes would be blocked by the CSP.26 goldmark.WithExtensions(extension.Linkify, extension.Strikethrough, extension.TaskList,27 extension.NewTable(extension.WithTableCellAlignMethod(extension.TableCellAlignAttribute))),2528 goldmark.WithParserOptions(2629 parser.WithAutoHeadingID(),2730 parser.WithASTTransformers(util.Prioritized(linkFixer{base, dir}, 100)),
internal/server/proxy.go
+12 −4
@@ -13,7 +13,11 @@ import (13131414const maxUploadPack = 10 << 20151516var realmRe = regexp.MustCompile(`realm="[^"]*"`)16var (17 realmRe = regexp.MustCompile(`realm="[^"]*"`)18 digestRe = regexp.MustCompile(`^sha256:[a-f0-9]{64}$`)19 refRe = regexp.MustCompile(`^([A-Za-z0-9_][A-Za-z0-9._-]{0,127}|sha256:[a-f0-9]{64})$`)20)17211822// newProxy forwards allowlisted git, registry and release-download requests1923// to Gitea. It never forwards cookies or proxy headers, refuses upstream@@ -47,8 +51,12 @@ func (s *Server) newProxy() *httputil.ReverseProxy {4751 h.Del(k)4852 }4953 }50 if v := h.Get("Www-Authenticate"); v != "" {54 // point the registry's token realm at us; drop other challenges so55 // clients never prompt for (or send) credentials56 if v := h.Get("Www-Authenticate"); strings.HasPrefix(v, "Bearer ") {5157 h.Set("Www-Authenticate", realmRe.ReplaceAllLiteralString(v, `realm="`+s.Cfg.SiteURL+`/v2/token"`))58 } else {59 h.Del("Www-Authenticate")5260 }5361 if strings.Contains(resp.Request.URL.Path, "/releases/download/") {5462 // uploaded assets could be anything, including HTML@@ -131,10 +139,10 @@ func (s *Server) proxyRoute(w http.ResponseWriter, r *http.Request) bool {131139// registryImage splits "<image>/(manifests|blobs)/<ref>" and checks the132140// image against the allowlist. Image names may contain slashes.133141func (s *Server) registryImage(rest string) (string, bool) {134 for _, kind := range []string{"/manifests/", "/blobs/"} {142 for kind, ok := range map[string]*regexp.Regexp{"/manifests/": refRe, "/blobs/": digestRe} {135143 if i := strings.LastIndex(rest, kind); i > 0 {136144 image, ref := rest[:i], rest[i+len(kind):]137 return image, ref != "" && !strings.Contains(ref, "/") && s.Cfg.HasImage(image)145 return image, ok.MatchString(ref) && s.Cfg.HasImage(image)138146 }139147 }140148 return "", false
internal/server/proxy_test.go
+16 −2
@@ -55,7 +55,8 @@ func TestProxyRoutes(t *testing.T) {5555 {"HEAD", "/v2/", nil, 200, "/v2/"},5656 {"GET", "/v2/token?scope=repository:daniel/repo-a:pull&service=container_registry", nil, 200, "/v2/token?scope=repository:daniel/repo-a:pull&service=container_registry"},5757 {"GET", "/v2/daniel/repo-a/manifests/latest", nil, 200, "/v2/daniel/repo-a/manifests/latest"},58 {"HEAD", "/v2/daniel/tools/cli/blobs/sha256:abc", nil, 200, "/v2/daniel/tools/cli/blobs/sha256:abc"},58 {"HEAD", "/v2/daniel/tools/cli/blobs/sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", nil, 200, "/v2/daniel/tools/cli/blobs/sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"},59 {"GET", "/v2/daniel/repo-a/manifests/sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", nil, 200, "/v2/daniel/repo-a/manifests/sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"},5960 {"GET", "/repo-a/releases/download/v1.0/app.tar.gz", nil, 200, "/daniel/repo-a/releases/download/v1.0/app.tar.gz"},60616162 // push and anything else on these prefixes never reaches Gitea@@ -76,6 +77,9 @@ func TestProxyRoutes(t *testing.T) {7677 {"GET", "/v2/daniel/secret/manifests/latest", nil, 404, ""},7778 {"GET", "/v2/other/repo-a/manifests/latest", nil, 404, ""},7879 {"GET", "/v2/_catalog", nil, 404, ""},80 {"GET", "/v2/daniel/repo-a/blobs/uploads", nil, 404, ""},81 {"GET", "/v2/daniel/repo-a/blobs/sha256:abc", nil, 404, ""},82 {"GET", "/v2/daniel/repo-a/manifests/-bad", nil, 404, ""},7983 {"GET", "/v2/daniel/repo-a/tags/list", nil, 404, ""},8084 {"GET", "/secret/releases/download/v1/x", nil, 404, ""},8185 {"GET", "/repo-a/releases/download/v1/a/b", nil, 404, ""},@@ -157,11 +161,21 @@ func TestProxyResponses(t *testing.T) {157161 http.Redirect(w, r, "http://minio.tailnet.example/bucket/blob", http.StatusTemporaryRedirect)158162 }159163 w = httptest.NewRecorder()160 s.ServeHTTP(w, httptest.NewRequest("GET", "/v2/daniel/repo-a/blobs/sha256:abc", nil))164 s.ServeHTTP(w, httptest.NewRequest("GET", "/v2/daniel/repo-a/blobs/sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", nil))161165 if w.Code != http.StatusBadGateway || strings.Contains(w.Header().Get("Location"), "tailnet") {162166 t.Errorf("upstream redirect passed through: %d %s", w.Code, w.Header().Get("Location"))163167 }164168169 u.resp = func(w http.ResponseWriter, r *http.Request) {170 w.Header().Set("Www-Authenticate", `Basic realm="Gitea"`)171 w.WriteHeader(http.StatusUnauthorized)172 }173 w = httptest.NewRecorder()174 s.ServeHTTP(w, httptest.NewRequest("GET", "/repo-a.git/info/refs?service=git-upload-pack", nil))175 if w.Header().Get("Www-Authenticate") != "" {176 t.Error("Basic challenge passed through; git would prompt for credentials")177 }178165179 u.resp = func(w http.ResponseWriter, r *http.Request) { io.Copy(io.Discard, r.Body) }166180 big := strings.NewReader(strings.Repeat("x", maxUploadPack+1))167181 req := httptest.NewRequest("POST", "/repo-a.git/git-upload-pack", big)
testdata/golden/repo-a/blob/README.md.html
+2 −2
@@ -32,9 +32,9 @@3232<nav class="breadcrumb" aria-label="path"><a href="/repo-a/">repo-a</a> / <span aria-current="page">README.md</span></nav>3333<div class="code-block">3434 <p class="code-label">35 <span>356 B · 18 lines</span><a href="/repo-a/raw/README.md">raw</a>35 <span>439 B · 24 lines</span><a href="/repo-a/raw/README.md">raw</a>3636 </p>37 <pre class="lines"><code><span class="line" id="L1"><a class="ln" href="#L1" aria-hidden="true">1</a><span class="hl-heading"># repo-a</span></span><span class="line" id="L2"><a class="ln" href="#L2" aria-hidden="true">2</a></span><span class="line" id="L3"><a class="ln" href="#L3" aria-hidden="true">3</a>A tiny fixture repo. See the [<span class="hl-variable">guide</span>](<span class="hl-variable">docs/guide.md</span>), the [<span class="hl-variable">docs folder</span>](<span class="hl-variable">docs/</span>)</span><span class="line" id="L4"><a class="ln" href="#L4" aria-hidden="true">4</a>and [<span class="hl-variable">the section below</span>](<span class="hl-variable">#usage</span>).</span><span class="line" id="L5"><a class="ln" href="#L5" aria-hidden="true">5</a></span><span class="line" id="L6"><a class="ln" href="#L6" aria-hidden="true">6</a></span><span class="line" id="L7"><a class="ln" href="#L7" aria-hidden="true">7</a></span><span class="line" id="L8"><a class="ln" href="#L8" aria-hidden="true">8</a></span><span class="line" id="L9"><a class="ln" href="#L9" aria-hidden="true">9</a></span><span class="line" id="L10"><a class="ln" href="#L10" aria-hidden="true">10</a><script>alert("raw html must not render")</script></span><span class="line" id="L11"><a class="ln" href="#L11" aria-hidden="true">11</a></span><span class="line" id="L12"><a class="ln" href="#L12" aria-hidden="true">12</a>[<span class="hl-variable">bad link</span>](<span class="hl-variable">javascript:alert(1</span>))</span><span class="line" id="L13"><a class="ln" href="#L13" aria-hidden="true">13</a></span><span class="line" id="L14"><a class="ln" href="#L14" aria-hidden="true">14</a><span class="hl-heading">## Usage</span></span><span class="line" id="L15"><a class="ln" href="#L15" aria-hidden="true">15</a></span><span class="line" id="L16"><a class="ln" href="#L16" aria-hidden="true">16</a><span class="hl-string">```sh</span></span><span class="line" id="L17"><a class="ln" href="#L17" aria-hidden="true">17</a>go run ./cmd/hello</span><span class="line" id="L18"><a class="ln" href="#L18" aria-hidden="true">18</a><span class="hl-string">```</span></span></code></pre>37 <pre class="lines"><code><span class="line" id="L1"><a class="ln" href="#L1" aria-hidden="true">1</a><span class="hl-heading"># repo-a</span></span><span class="line" id="L2"><a class="ln" href="#L2" aria-hidden="true">2</a></span><span class="line" id="L3"><a class="ln" href="#L3" aria-hidden="true">3</a>A tiny fixture repo. See the [<span class="hl-variable">guide</span>](<span class="hl-variable">docs/guide.md</span>), the [<span class="hl-variable">docs folder</span>](<span class="hl-variable">docs/</span>)</span><span class="line" id="L4"><a class="ln" href="#L4" aria-hidden="true">4</a>and [<span class="hl-variable">the section below</span>](<span class="hl-variable">#usage</span>).</span><span class="line" id="L5"><a class="ln" href="#L5" aria-hidden="true">5</a></span><span class="line" id="L6"><a class="ln" href="#L6" aria-hidden="true">6</a></span><span class="line" id="L7"><a class="ln" href="#L7" aria-hidden="true">7</a></span><span class="line" id="L8"><a class="ln" href="#L8" aria-hidden="true">8</a></span><span class="line" id="L9"><a class="ln" href="#L9" aria-hidden="true">9</a></span><span class="line" id="L10"><a class="ln" href="#L10" aria-hidden="true">10</a><script>alert("raw html must not render")</script></span><span class="line" id="L11"><a class="ln" href="#L11" aria-hidden="true">11</a></span><span class="line" id="L12"><a class="ln" href="#L12" aria-hidden="true">12</a>[<span class="hl-variable">bad link</span>](<span class="hl-variable">javascript:alert(1</span>))</span><span class="line" id="L13"><a class="ln" href="#L13" aria-hidden="true">13</a></span><span class="line" id="L14"><a class="ln" href="#L14" aria-hidden="true">14</a><span class="hl-heading">## Usage</span></span><span class="line" id="L15"><a class="ln" href="#L15" aria-hidden="true">15</a></span><span class="line" id="L16"><a class="ln" href="#L16" aria-hidden="true">16</a><span class="hl-string">```sh</span></span><span class="line" id="L17"><a class="ln" href="#L17" aria-hidden="true">17</a>go run ./cmd/hello</span><span class="line" id="L18"><a class="ln" href="#L18" aria-hidden="true">18</a><span class="hl-string">```</span></span><span class="line" id="L19"><a class="ln" href="#L19" aria-hidden="true">19</a></span><span class="line" id="L20"><a class="ln" href="#L20" aria-hidden="true">20</a>| flag | default |</span><span class="line" id="L21"><a class="ln" href="#L21" aria-hidden="true">21</a>| :--- | ------: |</span><span class="line" id="L22"><a class="ln" href="#L22" aria-hidden="true">22</a>| <span class="hl-string">`-v`</span> | off |</span><span class="line" id="L23"><a class="ln" href="#L23" aria-hidden="true">23</a></span><span class="line" id="L24"><a class="ln" href="#L24" aria-hidden="true">24</a>- [x] task lists render</span></code></pre>3838</div>3939</main>4040<footer>
testdata/golden/repo-a/commit-latest.html
+1 −1
@@ -38,7 +38,7 @@3838 <span>3 files · <span class="hl-added">+2</span> <span class="hl-removed">-1</span></span>3939 </p>4040 <p class="meta commit-ids">41 commit <code>3d795796b9b7ec4c803650d10e0e29d27dd41027</code> · parent <a href="/repo-a/commit/ec75ecddd0ca549fc7cca769182cebb680c2dc86/"><code>ec75ecddd0</code></a>41 commit <code>8ece53a30f74acf6687312e7804a31cf7cf617f3</code> · parent <a href="/repo-a/commit/fed6892d252d98d8de4bb6254172aa57ec71914f/"><code>fed6892d25</code></a>4242 </p>4343</section>4444<div class="code-block diff">
testdata/golden/repo-a/index.html
+18 −1
@@ -42,7 +42,7 @@4242 </div>4343 <ol class="commit-log-list">4444 <li class="commit-log-row">45 <a class="commit-log-hash" href="/repo-a/commit/3d795796b9b7ec4c803650d10e0e29d27dd41027/">3d795796b9</a>45 <a class="commit-log-hash" href="/repo-a/commit/8ece53a30f74acf6687312e7804a31cf7cf617f3/">8ece53a30f</a>4646 <span class="commit-log-msg">Add changelog</span>4747 <time class="commit-log-date" datetime="2026-11-19T08:30:00Z">2 days ago</time>4848 </li>@@ -99,6 +99,23 @@ tracker</p>9999<p><a href="">bad link</a></p>100100<h2 id="usage">Usage</h2>101101<pre><code>go run ./cmd/hello</code></pre>102<table>103<thead>104<tr>105<th align="left">flag</th>106<th align="right">default</th>107</tr>108</thead>109<tbody>110<tr>111<td align="left"><code>-v</code></td>112<td align="right">off</td>113</tr>114</tbody>115</table>116<ul>117<li><input checked="" disabled="" type="checkbox"> task lists render</li>118</ul>102119</article>103120</main>104121<footer>
testdata/golden/repo-a/log/index.html
+4 −4
@@ -35,13 +35,13 @@3535 </div>3636 <ol class="commit-log-list">3737 <li class="commit-log-row">38 <a class="commit-log-hash" href="/repo-a/commit/3d795796b9b7ec4c803650d10e0e29d27dd41027/">3d795796b9</a>39 <a class="commit-log-msg" href="/repo-a/commit/3d795796b9b7ec4c803650d10e0e29d27dd41027/">Add changelog</a>38 <a class="commit-log-hash" href="/repo-a/commit/8ece53a30f74acf6687312e7804a31cf7cf617f3/">8ece53a30f</a>39 <a class="commit-log-msg" href="/repo-a/commit/8ece53a30f74acf6687312e7804a31cf7cf617f3/">Add changelog</a>4040 <time class="commit-log-date" datetime="2026-11-19T08:30:00Z" title="Daniel">19 Nov 26</time>4141 </li>4242 <li class="commit-log-row">43 <a class="commit-log-hash" href="/repo-a/commit/ec75ecddd0ca549fc7cca769182cebb680c2dc86/">ec75ecddd0</a>44 <a class="commit-log-msg" href="/repo-a/commit/ec75ecddd0ca549fc7cca769182cebb680c2dc86/">Initial commit</a>43 <a class="commit-log-hash" href="/repo-a/commit/fed6892d252d98d8de4bb6254172aa57ec71914f/">fed6892d25</a>44 <a class="commit-log-msg" href="/repo-a/commit/fed6892d252d98d8de4bb6254172aa57ec71914f/">Initial commit</a>4545 <time class="commit-log-date" datetime="2026-06-01T10:00:00Z" title="Daniel">01 Jun 26</time>4646 </li>4747 </ol>
testdata/repo-a/README.md
+6 −0
@@ -16,3 +16,9 @@ and [the section below](#usage).1616```sh1717go run ./cmd/hello1818```1920| flag | default |21| :--- | ------: |22| `-v` | off |2324- [x] task lists render