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

Create an automation GitHub App for actions

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

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
30/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
github, github-actions
领域
ci-cd, devops

调研方向

从 admin 仓库中的 request-an-access-token.md 以及链接的 GitHub App 身份验证文档开始。检查提议的权限和授予 repository 访问权限的流程,包括 release-please 的示例工作流。完成的标准是:存在一个受组织限制的 GitHub App,并具有所述权限;访问 repository 需要提交 admin 请求;注册流程已编写文档。

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

描述

To automate common workflows like release-please and dependency updaters, a personal access token or a github app installation token is required to trigger subsequent GitHub Action workflows.

When you use the repository's GITHUB_TOKEN to perform tasks, events triggered by the GITHUB_TOKEN will not create a new workflow run. This prevents you from accidentally creating recursive workflow runs.
https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/triggering-a-workflow#triggering-a-workflow-from-a-workflow

However, GitHub does not allow creating PAT via API. This makes it awkward to automate token creation.

I propose creating a GitHub App in the @nodejs organization with the following permissions:

  • contents: write and pull-requests: write (permissions to create tags and pull requests, requested by release-please and for dependency updaters),
  • This GitHub App needs explicit granting to specific repositories, via explicit requests in the admin repo,
  • Only allow this GitHub App to be installed on the @nodejs account.

With this new GitHub app, new github action workflows can follow https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/making-authenticated-api-requests-with-a-github-app-in-a-github-actions-workflow to automate the token authentication. (example)

Granting the app to a repository still needs registering in this admin repo for awareness.

This is only for common workflows. Requesting permissions for customized workflows that need additional permissions should still follow the steps in https://github.com/nodejs/admin/blob/main/request-an-access-token.md.

主要语言
JavaScript
星标
202
派生
183
平均合并
13 天 12 小时
30 天内合并 PR
2

贡献指南

打开贡献指南

从这里开始

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

nodejs/admin 的其他 Issue

查看 nodejs/admin 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

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