generated from alex/base-template
Remove redundant built-in tasks and restrict compile permissions #6
No reviewers
Labels
No labels
dependencies
No milestone
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
alex/atproto-gravatar-sync!6
Loading…
Reference in a new issue
No description provided.
Delete branch "pi/issue5-1783699508260"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Changes
Closes #5.
1. Remove redundant Deno built-in task definitions
Removed
check,fmt,fmt:check, andlintfromdeno.json— these were exact aliases of Deno's built-in tasks, so defining them was unnecessary. They continue to work viadeno task check/deno task fmt/ etc. thanks to the built-in fallback.Kept the tasks that have a genuine reason to differ from the built-ins:
test— needs--allow-read --allow-writefor temp dirs / file I/O in the test suitelogin— not a built-in; runs the interactive OAuth bootstrapcompile— not a built-in2. Restrict
deno compilepermissionsThe compiled binary previously had blanket
--allow-read,--allow-write, and--allow-env. Now narrowed to least privilege:--allow-read/dataonly--allow-write/dataonly--allow-envPDS_URL,HANDLE,GRAVATAR_TOKEN,GRAVATAR_EMAIL,GRAVATAR_API_URL,STATE_FILE--allow-netThis matches the runtime design: the state file lives on the
/datavolume (VOLUME ["/data"]), andloadConfig()reads exactly those six environment variables. Applied to both thedeno task compiletask and the Containerfile build step./pi see comment, push changes
@ -60,3 +60,2 @@deno task test # deno test (no network — HTTP is mocked in-process)deno task fmt # formatdeno task lint # lintdeno task fmt # format (built-in)let's remove the "task" and use built-in directly when available, eg "deno fmt --check", etc
No prompt found - cannot proceed
View action run | Model: zai/glm-5.2 (thinking: xhigh) | Time: 0s | Action v2.25.1-develop (develop @ 5c04899)