List minimum permissions in README.md
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 38/100
- Issue 類型
- 文件
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- github-actions
- 領域
- ci-cd, documentation
研究方向
先從 README.md 和相關程式碼範例開始,接著檢視 devcontainers/ci 工作流程如何使用 GITHUB_TOKEN 和其他憑證。在新的 README 區段中記錄所需的最低權限,並更新適用的範例,使其權限設定保持一致。
由索引模型根據 Issue 內容生成。
描述
GitHub recommends users limit the permissions of any third-party actions: [^1]
- Use credentials that are minimally scoped
- Make sure the credentials being used within workflows have the least privileges required, and be mindful that any user with write access to your repository has read access to all secrets configured in your repository.
- Actions can use the
GITHUB_TOKENby accessing it from thegithub.tokencontext. For more information, see "Contexts." You should therefore make sure that theGITHUB_TOKENis granted the minimum required permissions. It's good security practice to set the default permission for theGITHUB_TOKENto read access only for repository contents. The permissions can then be increased, as required, for individual jobs within the workflow file. For more information, see "Automatic token authentication."
Can you please list the required permissions [^2] for the devcontainers/ci in a new section of the README.md and in the relevant code examples?
[^1]: GitHub Docs, security hardening, using secrets
[^2]: GitHub Docs, workflow syntax, permissions
- 主要語言
- TypeScript
- 星號
- 507
- 分支
- 102
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
在瀏覽器裡用你自己的 GitHub 帳號啟動這個專案的開發容器。
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
devcontainers/ci 的其他 Issue
-
難度 3/5 1-2 天 新手友好度 68/100
devcontainers/ci#446 ·
-
難度 3/5 1-2 天 新手友好度 55/100
devcontainers/ci#445 ·
-
難度 4/5 3-5 天 新手友好度 45/100
devcontainers/ci#444 · 4 則留言 · 3 個 reaction ·
-
Inputs are wrong in post step when action is called through a nested composite action可能已有人在做 @v-Kaniska244 於 89 天前認領。 未關閉
devcontainers/ci#442 · 已指派 1 人 ·
-
難度 4/5 3-5 天 新手友好度 45/100
devcontainers/ci#437 ·
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 75/100
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 83/100
維護者通常 1 天內回覆
-
🔊 a11y
難度 2/5 1-3 小時 新手友好度 82/100
betagouv/mon-entreprise#4726 ·
維護者通常 9 天內回覆
-
難度 2/5 1-3 小時 新手友好度 68/100
Deltares/fews-pi-requests#357 ·
維護者通常 1 天內回覆
-
bug confirmed js v6
難度 2/5 1-3 小時 新手友好度 85/100
維護者通常 1 天內回覆