Actions using private PyPi , dont work

I have private packages hosted using pypicloud ( https://pypicloud.readthedocs.io/en/latest/)

Even that I have my secrets setup, the following steps can not work

test_pypi:
    runs-on: ubuntu-latest
    steps:
      - name: Set up Python 3.7
        uses: actions/setup-python@v1
        with:
          python-version: 3.7
      - name: Install dependencies
        run: |
            python -m pip install --upgrade pip
            pip install awesomo -i https://${{ secrets.pypi_user }}:${{ secrets.pypi_pass }}@some.url.com

Am i missing something ?

 Hi,

Thanks for your feedback!

Please add the encrypted variables in the env for you python command, code sample as below:

- name: Install dependencies
        run: |
          python -m pip install --upgrade pip
          pip install awesomo -i https://${USER}:${PWD}@some.url.com
        env:
          USER: ${{ secrets.pypi_user }}
          PWD: ${{ secrets.pypi_pass }}

Related link: https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets

1 Like