Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

ci: restrict checkout credentials in shellcheck workflow

未关闭 适合新手
#4 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
75/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
git, github-actions, shell
领域
ci-cd, security

调研方向

找到 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,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

相似的 Issue

更多 Shell/Bash Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。