Automatically configure the GitHub server URL
还没有人认领这个 Issue。
评估
调研方向
首先定位 GitHub Action 元数据以及读取当前 GitHub URL 配置的代码。检查该 action 在 GitHub.com、GitHub Enterprise Server 以及独立容器中使用时的行为,然后验证对于 Actions 运行,URL 会被推断,同时仍支持显式配置。
由索引模型根据 Issue 内容生成。
描述
GitHub Actions provides information about the URLs associated with the GitHub instance running the action, whether that is GitHub.com or GitHub Enterprise Server via the following properties of the github context:
api_urlgraphql_urlserver_url
Accordingly, when run as a GitHub Action (not as a standalone container), the action could self-configure itself for the current environment, only requiring the URL to be specified if it does not match the execution environment. This would make the action "just work™️" in GitHub Enterprise Server without having to explicitly configure the action.
For example:
---
name: 'Evergreen action'
author: 'github'
description: 'A GitHub Action to request dependabot enablement on eligible repositories in an organization.'
runs:
using: 'docker'
image: 'docker://ghcr.io/github/evergreen:v1'
+ env:
+ GH_ENTERPRISE_URL: ${{ github.server_url }}
branding:
icon: 'file-plus'
color: 'green'
In this scenario, renaming the variable to GH_URL would probably make the most sense, but it could be still be optional when using the container directly as it is today.
- 主要语言
- Python
- 星标
- 226
- 派生
- 25
- 平均合并
- 3 小时 46 分钟
- 30 天内合并 PR
- 8
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
github-community-projects/evergreen 的其他 Issue
-
bug keep
难度 3/5 1-2 天 新手友好度 45/100
github-community-projects/evergreen#221 · 2 条评论 ·
-
Instead of exhaustively enumerating repos in EXEMPT_REPOS, support an EXEMPT_LABELS config option未关闭enhancement keep ready-for-work
难度 4/5 3-5 天 新手友好度 35/100
github-community-projects/evergreen#35 · 2 条评论 · 3 个 reaction ·
-
bug keep ready-for-work
难度 4/5 3-5 天 新手友好度 35/100
github-community-projects/evergreen#29 · 5 条评论 · 1 个 reaction ·
-
enhancement keep ready-for-work
难度 5/5 一周以上 新手友好度 15/100
github-community-projects/evergreen#10 · 1 条评论 · 2 个 reaction ·
查看 github-community-projects/evergreen 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 72/100
letsencrypt/cp-cps#353 ·
-
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 2/5 1-3 小时 新手友好度 84/100
PedestrianDynamics/pyFDS-Evac#394 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
DOI-USGS/pywatershed#421 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
python-pillow/Pillow#10087 · 1 条评论 ·
维护者通常 1 天内回复