Add inputs for a custom download feed (azure-feed, uncached-feed, feed-credential)
まだ誰も着手していません。
評価
- 難易度
- 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時間
- マージ済み PR(30日)
- 3
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
actions/setup-dotnet のほかの issue
-
feature request
難易度 5/5 1週間以上 初心者へのやさしさ 45/100
actions/setup-dotnet#778 · コメント 3 件 · リアクション 1 件 ·
-
feature request
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
actions/setup-dotnet#701 · コメント 3 件 ·
-
feature request
難易度 1/5 1時間未満 初心者へのやさしさ 55/100
actions/setup-dotnet#659 · コメント 1 件 · リアクション 2 件 ·
-
feature request
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
actions/setup-dotnet#543 · コメント 5 件 · リアクション 2 件 ·
-
feature request
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
actions/setup-dotnet#522 · コメント 1 件 · リアクション 3 件 ·
actions/setup-dotnet の issue をすべて見る
似ている issue
-
bug chore
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
🧩 Docs job fails type-checking `generate-plugin-docs.ts`対応中かも @X-Guardian が今日担当しました。 オープンdiscussion
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
envision-erpnext
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
bug sharing & sync
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
メンテナーはふだん 1 日以内に返信