Skip to content

Never sync code files to blob storage - #145

Closed
pjohnst5 wants to merge 1 commit into
mainfrom
pjohnst5/dont-sync-code
Closed

pjohnst5 wants to merge 1 commit into
mainfrom
pjohnst5/dont-sync-code

Conversation

@pjohnst5

Copy link
Copy Markdown
Owner

Adds an explicit codeExtensions denylist alongside the existing mediaExtensions allowlist and consults it first in both the walk and isMediaPath. Source files (.md, .css, .html, .go, .js, .ts, .json, .yaml, .yml, .toml, .mod, .sum, .sh) can never be uploaded, even if a future edit accidentally adds one to the media allowlist.

Also adds a unit test that pins this invariant.

Adds an explicit codeExtensions denylist alongside the existing
mediaExtensions allowlist and consults it first in both the walk and
isMediaPath. Source files (.md, .css, .html, .go, .js, .ts, .json,
.yaml, .yml, .toml, .mod, .sum, .sh) can never be uploaded, even if a
future edit accidentally adds one to the media allowlist.

Also adds a unit test that pins this invariant.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 41d87383-8698-48c9-a325-6fcc2ff1bbc3
@pjohnst5 pjohnst5 closed this Sep 11, 2026
@pjohnst5
pjohnst5 deleted the pjohnst5/dont-sync-code branch September 11, 2026 21:13
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.

1 participant