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

Add support for keyring authentication #126

Open
clement-chaneching opened this issue Jul 10, 2024 · 1 comment
Open

Add support for keyring authentication #126

clement-chaneching opened this issue Jul 10, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@clement-chaneching
Copy link

Hello,

It would be nice if this action could support keyring authentication for Google Artifact Registries:

This runs, but it could be cleaner with the setup pixi action:

      - id: auth
        name: Authenticate to Google Cloud
        uses: google-github-actions/auth@v2
        with:
          workload_identity_provider: ${{secrets.WORKLOAD_IDENTITY_PROVIDER}}
          service_account: ${{inputs.SERVICE_ACCOUNT}}
          token_format: access_token

      - name: Run Tests
        run: |
          curl -fsSL https://pixi.sh/install.sh | bash
          export PATH=/home/runner/.pixi/bin:$PATH
          pixi global install pipx
          pipx install keyring
          pipx inject keyring keyrings.google-artifactregistry-auth --index-url https://pypi.org/simple
          pixi install --environment test --pypi-keyring-provider subprocess
          pixi run --environment test tests

Thanks!

@pavelzw pavelzw added the enhancement New feature or request label Jul 10, 2024
@eightysteele
Copy link

Confirming that the workaround works and that it would certainly be a nicer devx via the pixi action. :)

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

No branches or pull requests

3 participants