<.repository_header repository={@repository} active_tab={:code} />
<%= if @live_action == :finding or @branch_options == [] do %> <.icon name="hero-code-bracket" class="size-3.5 text-ink-faint" /> {@selected_branch || @repository.default_branch || "commit"} <% else %>
<% end %> <.icon name="hero-clock" class="mr-1 inline size-3.5" /> {if @commit_sha, do: short_sha(@commit_sha), else: "Resolving commit"}
<.link :if={@visible_finding_count > 0} navigate={repository_security_path(@repository)} class="inline-flex items-center gap-1.5 text-signal" > <.icon name="hero-shield-exclamation" class="size-3.5" /> {@visible_finding_count} {if @visible_finding_count == 1, do: "finding", else: "findings"} <%!-- Hosted status lives in the repository header only. --%> Read-only
https {@clone_urls.https}
ssh {@clone_urls.ssh}

{@finding.title}

Tarakan checks the finding's stored file and line range against this exact commit.

<%= if @commit_sha do %> <% end %>
<.icon name="hero-arrow-path" class="mx-auto size-5 text-ink-faint" />

Loading pinned source

Tarakan is verifying the public repository and exact commit before rendering code.

<.icon name="hero-document-magnifying-glass" class="mx-auto size-7 text-ink-faint" />

{error_title(@error_kind)}

{error_message(@error_kind)}

git remote add origin {@clone_urls.https}
git push -u origin main
<%= if @view_state == :ready && @browser_kind == :tree do %>
<.icon name="hero-folder-open" class="size-4 shrink-0 text-ink-faint" />

{if @path == "", do: "/", else: @path}

{@entry_count} {if @entry_count == 1, do: "entry", else: "entries"}
<%= if entry.type in [:tree, :blob] do %> <.link navigate={entry_path(@repository, @commit_sha, entry)} class="flex min-w-0 items-center gap-3 text-ink transition hover:text-signal" > <.icon name={entry_icon(entry.type)} class="size-4 shrink-0 text-ink-faint" /> {entry.name} <% else %>
<.icon name={entry_icon(entry.type)} class="size-4 shrink-0 text-ink-faint" /> {entry.name} {entry_label(entry.type)}
<% end %>
<.link :if={entry.finding_count > 0} id={"#{id}-findings"} navigate={repository_security_path(@repository)} class="inline-flex items-center gap-1 rounded-full border border-signal px-2 py-0.5 font-mono text-[10px] font-semibold text-signal" aria-label={"View security findings affecting #{entry.path}"} > <.icon name="hero-shield-exclamation" class="size-3" /> {entry.finding_count} {format_bytes(entry.size)}
<% end %> <%= if @view_state == :ready && @browser_kind == :file do %>
<.icon name="hero-document-text" class="size-4 shrink-0 text-ink-faint" />

{@file.path}

<.link :if={@visible_finding_count > 0} navigate={repository_security_path(@repository)} class="inline-flex items-center gap-1 rounded-full border border-signal px-2 py-0.5 text-signal" > <.icon name="hero-shield-exclamation" class="size-3" /> {@visible_finding_count} {if @visible_finding_count == 1, do: "finding", else: "findings"} {@line_count} {if @line_count == 1, do: "line", else: "lines"} {format_bytes(@file.size)}
The requested line selection was invalid, so no lines are highlighted.
The reported line range is outside this file at the pinned commit.
This file is empty at the pinned commit.
0} class="overflow-x-auto">
{line.number} {line.content}
<% end %>