generated from alex/base-template
Cleanups #5
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#5
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
No reason to redefine deno built in tasks at
"fmt": "deno fmt",Ref: https://docs.deno.com/runtime/#use-the-built-in-toolchain
Also shoild be possible to restrict permissions for the deno compile step (write only to data folder, for example)
/pi new pr
Now I have a complete understanding of the codebase. Let me make the changes:
fmt,fmt:check,lint,check) — these are exact aliases of Deno's built-in tasks--allow-read/--allow-writeto/dataand--allow-envto only the vars the program actually readsLet me verify all the changes:Everything looks clean. Let me create the PR.PR created: #6Summary of changes:
Removed redundant built-in tasks from
deno.json—check,fmt,fmt:check, andlintwere exact aliases of Deno's built-in tasks. They still work via the built-in fallback. Kepttest(needs--allow-read/--allow-writefor the test suite),login, andcompilesince they genuinely differ from built-ins.Restricted
deno compilepermissions to least privilege:--allow-read=/data(was: all paths)--allow-write=/data(was: all paths)--allow-env=PDS_URL,HANDLE,GRAVATAR_TOKEN,GRAVATAR_EMAIL,GRAVATAR_API_URL,STATE_FILE(was: all vars)Applied to both the
deno task compiletask and the Containerfile build step.View action run | Model: zai/glm-5.2 (thinking: xhigh) | Time: 5m 3s | Tokens: 263.7K | Pi SDK v0.80.3 | Action v2.25.1-develop (develop @ 5c04899)