Add inputs for a custom download feed (azure-feed, uncached-feed, feed-credential)
Maintainers usually reply within 7 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 68/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- github-actions, typescript
Research direction
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.
Written by the indexing model from the issue text.
Description
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?
- Dominant language
- TypeScript
- Stars
- 1.2k
- Forks
- 579
- Avg merge
- 6d 4h
- Merged PRs (30d)
- 1
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from actions/setup-dotnet
-
rollForward: latestMajor installs the latest LTS SDK even when it is older than sdk.versionPossibly taken @kamronbatman claimed this 8 days ago. Openbug
Difficulty 4/5 3-5 days Newbie friendliness 35/100
actions/setup-dotnet#802 · 1 comment · 6 reactions ·
Maintainers usually reply within 7 days
-
feature request
Difficulty 5/5 Over a week Newbie friendliness 45/100
actions/setup-dotnet#778 · 3 comments · 1 reaction ·
Maintainers usually reply within 7 days
-
feature request
Difficulty 5/5 Over a week Newbie friendliness 25/100
actions/setup-dotnet#701 · 3 comments ·
Maintainers usually reply within 7 days
-
feature request
Difficulty 1/5 Under an hour Newbie friendliness 55/100
actions/setup-dotnet#659 · 1 comment · 2 reactions ·
Maintainers usually reply within 7 days
-
feature request
Difficulty 4/5 3-5 days Newbie friendliness 38/100
actions/setup-dotnet#543 · 5 comments · 2 reactions ·
Maintainers usually reply within 7 days
All issues in actions/setup-dotnet
Similar issues
-
db-d1-sqlite: upsert is aliased to updateOne, so payload.kv.set never inserts new keysPossibly taken @pcbeingused333 claimed this today. OpenBug db: d1-sqlite Payload OSS
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
payloadcms/payload#19766 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
device-management-toolkit/sample-web-ui#3711 ·
Maintainers usually reply within 1 day
-
bug impact:low Team: SecuritySolution Team:Defend Workflows v9.6.0
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
elastic/kibana#306401 · 3 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
agentes-chat/agentes-chat#927 ·
Maintainers usually reply within 1 day
-
Closing a pinned tab jumps to the Tabs section instead of the next open pinned tabPossibly taken @seenimohamed claimed this today. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
ardia-browser/ardia#2769 ·
Maintainers usually reply within 1 day