Add inputs for a custom download feed (azure-feed, uncached-feed, feed-credential)
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 68/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- github-actions, typescript
调研方向
Start with src/installer.ts and trace how DotnetInstallScript builds arguments for the bundled scripts externals/install-dotnet.sh and externals/install-dotnet.ps1; check the action input definitions and related tests to see how inputs are wired. Done means all three feed values reach the matching OS option and the credential is masked with core.setSecret(). The releases-index URL is described as optional.
由索引模型根据 Issue 内容生成。
描述
Description:
Add inputs to set a custom download feed (mirror or proxy) for the .NET install script.
The bundled install scripts (externals/install-dotnet.sh and externals/install-dotnet.ps1) already support these options:
| Bash option | PowerShell option | Function |
|---|---|---|
--azure-feed |
-AzureFeed |
Sets the base URL for the download of the SDK and runtime archives |
--uncached-feed |
-UncachedFeed |
Sets the base URL for uncached downloads |
--feed-credential |
-FeedCredential |
Adds a query string (for example a SAS token) to each feed URL |
At this time, the action does not send these options to the script. DotnetInstallScript in src/installer.ts only adds -ProxyAddress and -ProxyBypassList on Windows.
Proposed usage:
- uses: actions/setup-dotnet@v6
with:
dotnet-version: '9.0.x'
dotnet-feed: 'https://artifactory.example.com/artifactory/dotnet'
dotnet-uncached-feed: 'https://artifactory.example.com/artifactory/dotnet'
dotnet-feed-credential: ${{ secrets.DOTNET_FEED_CREDENTIAL }}
Expected behavior:
- The action sends each value to the install script with the correct option for the OS (
--azure-feedor-AzureFeed, and the other options). - The action masks the credential with
core.setSecret(), so that it does not show in the logs. - Optional: an input to set the URL of
releases-index.json. The action downloads this file fromhttps://builds.dotnet.microsoft.com/dotnet/release-metadata/releases-index.jsonto find the latest version forA.xandA.B.x. If the runner cannot get access to this URL, floating versions fail even with a custom feed (see #762).
Justification:
- Many companies use self-hosted runners in a closed network. These runners can only download through an internal mirror or proxy repository (Artifactory, Nexus, Azure Blob Storage). They cannot get access to
builds.dotnet.microsoft.com. - The
https_proxyvariable is not always a solution. Some networks allow only a repository mirror, not an HTTP proxy. - In some regions, the download from the default CDN is slow (see #450). A mirror near the runner makes the download faster.
- At this time, the only workaround is to not use this action and run
dotnet-installmanually. Then the workflow loses the other features of the action (cache,global-json-file, NuGet authentication, problem matchers).
Related: #450, #762
Are you willing to submit a PR?
- 主要语言
- TypeScript
- 星标
- 1.2k
- 派生
- 575
- 平均合并
- 7 天 23 小时
- 30 天内合并 PR
- 3
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
actions/setup-dotnet 的其他 Issue
-
feature request
难度 5/5 一周以上 新手友好度 45/100
actions/setup-dotnet#778 · 3 条评论 · 1 个 reaction ·
-
feature request
难度 5/5 一周以上 新手友好度 25/100
actions/setup-dotnet#701 · 3 条评论 ·
-
feature request
难度 1/5 1 小时以内 新手友好度 55/100
actions/setup-dotnet#659 · 1 条评论 · 2 个 reaction ·
-
feature request
难度 4/5 3-5 天 新手友好度 38/100
actions/setup-dotnet#543 · 5 条评论 · 2 个 reaction ·
-
feature request
难度 3/5 1-2 天 新手友好度 35/100
actions/setup-dotnet#522 · 1 条评论 · 3 个 reaction ·
查看 actions/setup-dotnet 的全部 Issue
相似的 Issue
-
reproduced
难度 2/5 1-3 小时 新手友好度 61/100
anomalyco/opencode#62873 · 1 条评论 ·
维护者通常 1 天内回复
-
code-quality good-first-issue
难度 2/5 1-3 小时 新手友好度 72/100
OpenRailAssociation/netzgrafik-editor-frontend#1481 ·
维护者通常 1 天内回复
-
🙌 icon request
难度 2/5 1-3 小时 新手友好度 63/100
lucide-icons/lucide#5183 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 81/100
cloudflare/capnweb#293 ·
维护者通常 2 天内回复
-
bug implicit-state
难度 2/5 1-3 小时 新手友好度 74/100