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
- 星标
- 499
- 派生
- 101
- 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 · 2 条评论 · 3 个 reaction ·
-
Inputs are wrong in post step when action is called through a nested composite action可能重新可做 @v-Kaniska244 于 61 天前认领,目前没有进行中的 PR。 未关闭
devcontainers/ci#442 · 已指派 1 人 ·
-
难度 4/5 3-5 天 新手友好度 45/100
devcontainers/ci#437 ·
相似的 Issue
-
dx hacktoberfest help wanted
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
-
documentation
难度 1/5 1 小时以内 新手友好度 88/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
cloudflare/agents#2498 ·
维护者通常 1 天内回复
-
Missing repro Platform: Android
难度 2/5 1-3 小时 新手友好度 78/100
software-mansion/react-native-reanimated#10816 · 2 条评论 ·
维护者通常 1 天内回复
-
e2e-failure ready-to-code
难度 2/5 1-3 小时 新手友好度 76/100
redhat-developer/rhdh-plugin-export-overlays#4129 ·
维护者通常 1 天内回复