← Back to issue list

cli: add export-login command

View original Github issue

Metadata

Project
snapcraft
Number
#1780
Type
pull request
State
merged
Author
kyrofa
Labels
—
Created
Updated
Closed

Current evaluation

Merged as commit 53027208d ("cli: add export-login command (#1780)"), adding snapcraft export-login plus a --with option to login, closing #1711 and the abandoned enable-ci approach.

Resolution: closed resolved

Reason: PR #1780 was merged into snapcraft as commit 53027208d by maintainer kyrofa, implementing the `export-login` command and `login --with` so CI systems (e.g. CircleCI) can use attenuated store credentials. It explicitly resolves issue #1711, and a later follow-up added an expiration option in #1831 (commit 133ba03d9).

Evaluated by: mr-cal-bot

No scores available.

Issue body

- [x] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)? - [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? - [x] If this is a bugfix. Have you checked that there is a bug report open for the issue you are trying to fix on [bug reports](https://bugs.launchpad.net/snapcraft)? - [x] If this is a new feature. Have you discussed the design on the [forum](https://forum.snapcraft.io)? - [x] Have you successfully run `./runtests.sh static`? - [x] Have you successfully run `./runtests.sh unit`? ----- This PR resolves #1711 by adding the `export-login` command as well as a `--with` option to `login` to use the exported login file. This is the agreed-upon method for supporting Circle CI. See the issue as well as the [forum topic](https://forum.snapcraft.io/t/better-support-for-other-ci-systems/2968) for more details.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged as commit 53027208d ("cli: add export-login command (#1780)"), adding snapcraft export-login plus a --with option to login, closing #1711 and the abandoned enable-ci approach.
stealth/space-bunny-alpha — closed resolved Merged in #1780 (commit 53027208d), adding export-login and login --with support for exported credentials; resolves #1711 and enables CI workflows.
qwen/qwen3.6-35b-a3b — — Merged the export-login CLI command and a --with flag for login to support CI systems. Review feedback updated packages to snaps and adjusted formatting. Approved and merged.
qwen3.6-35b-a3b-mtp-q6 — — Merged the export-login CLI command and --with flag for login to enable CI token export, resolving #1711. Terminology was updated from packages to snaps based on reviewer feedback.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: snapcraft#1711 (confidence 95%)

    The issue PR #1780 resolves: 'This PR resolves #1711' — the develop-enable-ci CircleCI request was closed in favour of export-login.

  • Related To: snapcraft#1831 (confidence 70%)

    Follow-up PR merged as commit 133ba03d9 adding an --expiration option to export-login.

  • Related To: snapcraft#1958 (confidence 60%)

    Commit 5e6316ba0 extended export-login with support for more granular store permissions.

  • Related To: snapcraft#6302 (confidence 55%)

    Commit df5e9d668 later fixed an error when the export-login target file already exists.

Related issues

Issue Project State Summary Similarity
#3164 cli: remove enable-ci command snapcraft merged Merged PR #3164 (commit ccb612e5a), removing enable-ci after export-login superseded it.
74%
#1795002 Remove enable-ci command. snapcraft (launchpad) closed Removed enable-ci in snapcraft#3164 (commit ccb612e5a); CI authentication is instead handled by exporting login credentials with export-login.
72%
#2736 cli: prompt for login if required snapcraft merged Merged in snapcraft#2736 (commit 215c6c4ae), changing the CLI to prompt for Store login when authentication is required instead of exiting with an error.
70%
#1831 cli: add expiration option to export-login snapcraft merged Merged as PR #1831 (commit 133ba03d), adding an ISO 8601 --expires option to `snapcraft export-login` and refactoring store error handling to surface expiration validation errors.
70%
#602 Added an export option to login to save the obtained credentials (CRAFT-641). charmcraft merged Merged #602 via commit f0e57248, adding login --export support to save obtained credentials and implementing CRAFT-641.
70%
#2043 cli: support exporting login to stdout snapcraft merged Merged in PR #2043 (commit 6bf6fbb81), enabling export-login to stdout as base64-encoded INI credentials.
70%