Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions docs/src/content/docs/reference/templating.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,9 @@ File paths are **restricted to the `.github` folder** to prevent access to arbit
{{#runtime-import shared-instructions.md}} # Loads .github/shared-instructions.md
{{#runtime-import .github/shared-instructions.md}} # Same - .github/ prefix is trimmed

# ❌ Invalid - Attempts to escape .github folder
{{#runtime-import ../src/config.go}} # Error: Must be within .github folder
{{#runtime-import ../../etc/passwd}} # Error: Must be within .github folder
# ❌ Invalid - Security violations
{{#runtime-import ../src/config.go}} # Error: Relative traversal outside .github
{{#runtime-import /etc/passwd}} # Error: Absolute path not allowed
```

### Caching
Expand Down Expand Up @@ -272,10 +272,14 @@ Runtime import file not found: missing.txt
Invalid start line 100 for file docs/main.go (total lines: 50)
```

**Path security violation:**
**Path security violations:**

```
Security: Path ../../../etc/passwd must be within .github folder
# Relative traversal
Security: Path ../src/main.go must be within .github folder (resolves to: ../src/main.go)

# Absolute path
Security: Path /etc/passwd must be within .github folder (resolves to: /etc/passwd)
```

**GitHub Actions macros detected:**
Expand Down