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

Github Actions version doesn't seem to have enough permission to comment by default? Suggestions?

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

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
github-actions, javascript
领域
ci-cd

调研方向

从链接的 workflow 运行以及 action/index.cjs 中的失败位置开始,然后检查显示的 token 环境和 GitHub 评论 endpoint。完成的标准是:已确定该 action 支持的身份验证和权限要求,并且能够在不出现 403 错误的情况下验证报告的评论请求。

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

描述

I tried to switch from GitHub Apps version to GitHub Actions version, but it seems default GITHUB_TOKEN won't have enough permission to comment, not sure if using a PAT would be a good idea, anyone got the same issue and how do you deal with it? Thanks!

https://github.com/transmission-remote-gui/transgui/actions/runs/5038925037/jobs/9036731668?pr=1302

env:
    GITHUB_TOKEN: ***
    OPENAI_API_KEY: 
    MODEL: gpt-4
    top_p: 1
    temperature: 0.2
Error: Resource not accessible by integration
{
  name: 'event',
  id: '5038925037',
  err: {
    type: 'RequestError',
    message: 'Resource not accessible by integration',
    stack: 'HttpError: Resource not accessible by integration\n' +
      '    at /home/runner/work/_actions/anc95/ChatGPT-CodeReview/main/action/index.cjs:4070:21\n' +
      '    at processTicksAndRejections (node:internal/process/task_queues:96:5)\n' +
      '    at async Job.doExecute (/home/runner/work/_actions/anc95/ChatGPT-CodeReview/main/action/index.cjs:34389:18)',
    name: 'HttpError',
    status: 403,
    response: {
      url: 'https://api.github.com/repos/transmission-remote-gui/transgui/issues/1302/comments',
主要语言
JavaScript
星标
4.5k
派生
466
PR 合并指标
30 天内没有已合并 PR

环境准备

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

从这里开始

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

anc95/ChatGPT-CodeReview 的其他 Issue

查看 anc95/ChatGPT-CodeReview 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

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