Skip to content

feat: Add persist-credentials option#266

Merged
pavelzw merged 13 commits into
prefix-dev:mainfrom
AndreasAlbertQC:logout-option
May 21, 2026
Merged

feat: Add persist-credentials option#266
pavelzw merged 13 commits into
prefix-dev:mainfrom
AndreasAlbertQC:logout-option

Conversation

@AndreasAlbertQC
Copy link
Copy Markdown
Contributor

@AndreasAlbertQC AndreasAlbertQC commented May 20, 2026

Motivation

When working with commercial remote servers such as Artifactory Cloud, effective caching of pixi installs is essential to avoid unnecessary traffic charges. setup-pixi provides great tooling for this use case, but also includes a footgun: Since the authentication for the remote remains available in the subsequent workflow steps, it's easy to accidentally install more -- fully uncached -- packages later on. This is especially true if you have multiple environments in your pixi.toml. (E.g. you install default via setup-pixi and later run something like pixi run -e test....

To allow users to safeguard against this problem, I would like to introduce an option that prevents credentials from being made available to subsequent steps.

Changes

  • Added an persist-credentials option. If set to false, we perform a pixi logout before terminating the action, thus removing credentials

The option is additive and defaults to previous behavior, making this change fully backward copmatible.

See prefix-dev/pixi#6174 for port of documentation to pixi repo

Comment thread README.md Outdated
@pavelzw pavelzw added the enhancement New feature or request label May 20, 2026
@pavelzw pavelzw changed the title feat: Add auth-logout option feat: Add persist-credentials option May 20, 2026
@AndreasAlbertQC AndreasAlbertQC marked this pull request as ready for review May 20, 2026 20:08
Comment thread src/main.ts Outdated
@pavelzw
Copy link
Copy Markdown
Collaborator

pavelzw commented May 21, 2026

can you also add a patch version bump in package.json?

@pavelzw pavelzw merged commit 5185adf into prefix-dev:main May 21, 2026
178 of 180 checks passed
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

Successfully merging this pull request may close these issues.

2 participants