GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Use non-root install by default · Issue #486 · actions/setup-dotnet

Use non-root install by default #486

New issue
Copy link
New issue
Copy link
Closed
Closed
Use non-root install by default#486
Copy link
Assignees
v-priyagupta108
Labels
feature requestNew feature or request to improve the current logicinvestigationThe issue is under investigation

Description

@SS1823
SS1823
opened on Nov 27, 2023
Issue body actions

Description:
Non-root install in tool cache using Microsoft provided binary archives.

Justification:
self-shosted runners should be run as non-privileged user for security.
The action is unable to install dotnet without hacks, that are hard to maintain.

Are you willing to submit a PR?
I can try.

Reacted by Simon Tremblay, Brandon Liles, IhateTrains, Jan Holcak, Frulfump and Kisaragi
Reacted by Simon Tremblay
Reacted by Simon Tremblay

Activity

  1. SS1823
    added
    feature requestNew feature or request to improve the current logic
    needs triage
    on Nov 27, 2023
  2. dusan-trickovic commented on Nov 28, 2023

    @dusan-trickovic
    dusan-trickovic
    on Nov 28, 2023
    More actions

    Hello, @SS1823 ! Thank you for your suggestion, we will take into consideration and see what can be done :)

  3. dusan-trickovic
    removed
    needs triage
    on Nov 28, 2023
  4. SS1823 commented on Nov 28, 2023

    @SS1823
    SS1823
    on Nov 28, 2023
    Author
    More actions

    btw, there's https://dotnetcli.blob.core.windows.net/dotnet/release-metadata/releases-index.json API and additionally each release has own release.json endpoint, along with all the .zip/tar.gz urls

  5. dusan-trickovic
    added
    needs eyes
    investigationThe issue is under investigation
    and removed
    needs eyes
    on Dec 26, 2023
  6. v-priya-kinthali commented on May 8, 2026

    @v-priya-kinthali
    v-priya-kinthali
    on May 8, 2026
    Contributor
    More actions

    Hi @SS1823 👋, Thank you for this feature request!
    We understand the challenge of running self-hosted runners as non-privileged users and the permission issues that can arise with the default install directory (/usr/share/dotnet).
    As a workaround, you can set the DOTNET_INSTALL_DIR environment variable to a user-writable path in your workflow, which should help avoid permission errors on self-hosted Linux runners:

    - name: Set DOTNET_INSTALL_DIR
      run: echo "DOTNET_INSTALL_DIR=$HOME/.dotnet" >> $GITHUB_ENV

    We've also added a note about this to the README in #689 for better discoverability.
    This is closely related to #518, which describes the same underlying issue, permission errors when installing .NET on self-hosted runners running as non-root users.
    We'll continue to explore incorporating logic into the action itself to handle permission issues gracefully in future updates. Thank you for your input!

  7. v-priyagupta108 commented on Oct 1, 2026

    @v-priyagupta108
    v-priyagupta108
    on Oct 1, 2026
    Contributor
    More actions

    Hello, @SS1823,
    A fix for this is up in #785. When the default install location is not writable, the action now falls back to .dotnet in the user's home directory with a warning, instead of failing with Permission denied. This addresses the permission failure for non-root users, though it does not change how .NET is downloaded or installed into the tool cache.

    Let us know if this resolves the failure on your runners.

    Reacted by Stefan Seeland
  8. v-priyagupta108 commented on Oct 14, 2026

    @v-priyagupta108
    v-priyagupta108
    on Oct 14, 2026
    Contributor
    More actions

    Hello, @SS1823,
    Just checking in. Does #785 fix the failure on your non-root runners?

  9. v-priyagupta108
    self-assigned this
    on Oct 21, 2026
  10. v-priyagupta108 commented on Oct 27, 2026

    @v-priyagupta108
    v-priyagupta108
    on Oct 27, 2026
    Contributor
    More actions

    Checking back on #785. It handles the permission failure for non-root installs. Does that cover your setup, or is there something it misses?

  11. v-priyagupta108 commented on Nov 2, 2026

    @v-priyagupta108
    v-priyagupta108
    on Nov 2, 2026
    Contributor
    More actions

    #785 has been merged, which resolves the permission failure for non-root installs. The action now falls back to a writable location automatically rather than failing. This will be available in the next release. Closing as resolved, and please reach out to us if your runners still hit this.

  12. v-priyagupta108
    closed this as completedon Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @v-priyagupta108
    v-priyagupta108

Labels

feature requestNew feature or request to improve the current logicinvestigationThe issue is under investigation

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.