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

GitHub Script action not pinned to a full-length commit SHA

未关闭
#169 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
1/5
预计耗时
1 小时以内
新手友好度
55/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
停滞
技术栈
github-actions
领域
ci-cd, security

调研方向

从 issue 中引用的第 137 行 action.yml 开始,检查 accessibility-scanner workflow 对 actions/github-script 的使用。将 action 引用更新为完整长度的 commit SHA,然后验证该 workflow 是否满足 repository 的 pinning 要求并成功运行。

由索引模型根据 Issue 内容生成。

描述

The accessibility-scanner workflow uses actions/github-script@v8 without pinning it to a specific commit SHA. This violates security best practices and causes the pipeline to fail when the Require actions to be pinned to a full-length commit SHA setting is enabled.

Steps to Reproduce
  1. Enable Require actions to be pinned to a full-length commit SHA in the repository settings.
  2. Run the accessibility-scanner workflow.
  3. Observe the failure caused by the unpinned actions/github-script action.
Expected Behavior

The workflow should run successfully with all actions pinned to full-length commit SHAs.

Actual Behavior

The workflow fails because actions/github-script@v8 is not pinned to a commit SHA.

https://github.com/github/accessibility-scanner/blob/db51bb5d470a862cc027836ee1583ab9d5ae5b16/action.yml#L137

主要语言
TypeScript
星标
375
派生
42
平均合并
1 天 7 小时
30 天内合并 PR
6

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

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

github/accessibility-scanner 的其他 Issue

查看 github/accessibility-scanner 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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