ZeroOne 繁體中文技術部落格

Cloudflare Workers compatibility_date 怎麼升:先盤點 flags,再更新日期
Cloudflare Workers 的 compatibility_date 決定採用哪些相容性變更。本文整理設定位置、舊日期風險,以及更新前如何用 flags、測試、rollback 與分階段部署降低行為改變。
731 字
|
4 分鐘
Cover Image of the Post
Docker Compose include 怎麼拆檔:先釐清路徑、變數與名稱衝突
Docker Compose 的 include 可拆分服務設定檔,但相對路徑、.env 優先順序與資源名稱衝突都會影響結果。本文整理拆檔前後的檢查重點、驗證指令,以及多人協作時的服務所有權安排。
689 字
|
3 分鐘
Cover Image of the Post
GitHub Actions cache 怎麼設才安全:restore-keys 不是可信來源
GitHub Actions cache 可減少依賴下載,但不是秘密保管箱。本文整理 key 與 restore-keys 的命中順序、低信任 workflow 的讀取邊界,以及避免 cache poisoning 的原則。
743 字
|
4 分鐘
Cover Image of the Post
GitHub Actions workflow_dispatch 的 boolean 為何要用 inputs context
GitHub Actions 手動 workflow 的 boolean input 在 inputs 與 github.event.inputs 中型別不同。本文用部署範例說明條件式為何應優先讀取 inputs,避免字串造成誤判。
608 字
|
3 分鐘
Cover Image of the Post
Astro 遠端圖片怎麼設白名單:用 domains 與 remotePatterns 縮小來源範圍
Astro 使用遠端圖片時,別用過寬的來源設定。本文整理 image.domains 與 image.remotePatterns 的差異、何時限制 HTTPS host 與路徑,以及如何驗證圖片最佳化和版面穩定。
622 字
|
3 分鐘
Cover Image of the Post
GitHub Copilot app 權限怎麼管:別再把它和 Copilot CLI 當成同一個開關
GitHub Copilot app 現在有獨立的企業與組織政策。本文整理預設狀態、三種管理選項,以及導入前如何分開審核桌面 app、CLI、雲端 agent 與 PR 審查的存取邊界和團隊治理責任。
741 字
|
4 分鐘
Cover Image of the Post
GitHub Copilot 串接 Linear:把 issue 委派給 cloud agent 前的檢查表
GitHub Copilot cloud agent 現已能從 Linear issue 啟動並建立 draft PR。本文整理安裝前的雙方管理權限、issue 撰寫邊界、branch 設定、審查流程與成本盤點,避免把跨工具委派當成直接合併。
1330 字
|
7 分鐘
Cover Image of the Post
Astro CSP 設定 inline script 與 style 前,先用 Report-Only 找出阻擋
Astro 7.1 新增更細的 CSP directive 控制。本文整理部署靜態網站前,如何以 Report-Only、實際資源清單與漸進收緊方式避免 inline script 或 style 被誤擋。
792 字
|
4 分鐘
Cover Image of the Post