Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optional ability to set the pypi repository and credentials to be used by pip on the runner #814

Open
heckerdj opened this issue Feb 6, 2024 · 2 comments
Labels
feature request New feature or request to improve the current logic

Comments

@heckerdj
Copy link

heckerdj commented Feb 6, 2024

Description:
Add optional with flags that allow users of the action to setup a pip.conf or pip.ini file with a private registry and credentials.

Example usage:

 - name: Set up Python ${{ matrix.python-version }}
     uses: actions/setup-python@v5
      with:
        python-version: ${{ matrix.python-version }}
        repository: ${{ secrets.PYPI_REPO_URL }}
        username: ${{ secrets.PYPI_USER_TOKEN }}
        password: ${{ secrets.PYPI_PASS_TOKEN }}
    - name: Install dependencies
      run: |
        python -m pip install --upgrade pip
        pip install -r requirements.txt

Justification:
Using this action on ephemeral runners in environments where where companies have their own repository's to cache python dependencies. Great example (and my use case) is an enterprise nexus pypi repo where the open source pypi is blocked by firewall and dependencies need to be security scanned and placed in nexus prior to use internally. Having one setup-python action run and have the runner configured properly to use pip in any environment prevents the clutter having to manually write a pip.conf/pip.ini file every time we want to pip install.

Are you willing to submit a PR?
Absolutely, I am new to typescript but would love to put in a PR if others agree the work is useful.

@heckerdj heckerdj added feature request New feature or request to improve the current logic needs triage labels Feb 6, 2024
@HarithaVattikuti
Copy link
Contributor

Hello @heckerdj
Thank you for creating this feature. We will investigate it and get back to you as soon as we have some feedback.

@hsiddiqui84
Copy link

Is there an update on this feature request please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request to improve the current logic
Projects
None yet
Development

No branches or pull requests

3 participants