{% if code_context.workflow_lines %}
{% if code_context.has_full_workflow %}Source context{% else %}Matched code{% endif %} {% if code_context.file_path %} · {{ code_context.file_path }}{% if code_context.line_number %}:{{ code_context.line_number }}{% endif %} {% endif %}
{% for row in code_context.workflow_lines %}{{ row.number|stringformat:"4s" }}{{ row.text }}
{% endfor %}
{% endif %} {% if code_context.has_matched_snippet %}
Matched at scan {% if code_context.file_path %} · {{ code_context.file_path }}{% if code_context.line_number %}:{{ code_context.line_number }}{% endif %} {% endif %}
{% for row in code_context.matched_lines %}{{ row.number|stringformat:"4s" }}{{ row.text }}
{% endfor %}
{% endif %} {% if code_context.workflow_steps %}
    {% for step in code_context.workflow_steps %}
  1. {{ step }}
  2. {% endfor %}
{% endif %} {% if code_context.needs_source_sync %}

Full file context is not on disk for this project. Sync the repository (project settings → repository URL or local path) and re-run a scan to load surrounding lines.

{% elif not code_context.has_workflow %}

No code context was captured for this finding.

{% endif %}