ci: restrict checkout credentials in shellcheck workflow
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 75/100
调研方向
找到 Shellcheck workflow 文件,并检查其 checkout 和权限设置;issue 没有指出文件名。设置 permissions: contents: read 和 persist-credentials: false,然后验证 pull request 仍能 checkout 并运行测试,且 Git 配置中没有凭据。issue 提到仓库脚本和一个隔离的 tmux 回归测试套件,作为相关的测试背景。
由索引模型根据 Issue 内容生成。
描述
The shellcheck workflow inherits default token permissions and persists checkout credentials. Its pull-request job runs repository scripts, including the new isolated tmux regression suite.
Follow up by setting permissions: contents: read and persist-credentials: false, and verify the workflow still checks out and tests pull requests without credentials in Git config.
This pre-existing workflow configuration was raised as a non-blocking review comment in https://github.com/jonathanong/scripts/pull/3 (CodeRabbit review PRR_kwDOSeuXK88AAAABQdXdPA). Track independently from the pane-targeting fix.
- 主要语言
- Shell
- 星标
- 0
- 派生
- 0
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
CachyOS/cachyos-hooks#23 ·
-
area/cli good first issue size/S type/feature
难度 2/5 1-3 小时 新手友好度 84/100
lorica-labs/volant#549 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 84/100
alunduil/alunduil-chezmoi#949 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
input-output-hk/actions#45 ·