← Back to issue list

Autodetect credentials

View original Github issue

Metadata

Project
snapcraft
Number
#4227
Type
issue
State
open
Author
abitrolly
Labels
Status: Triaged Type: Enhancement
Created
2023-06-23 05:01:21+00:00
Updated
2025-04-24 14:07:00+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

### Bug Description `snapcraft` doesn't detect OAuth flow credentials. ``` craft-store error: Credentials could not be parsed. Expected valid Ubuntu One credentials. ``` It should be able to detect which credentials is used without `SNAPCRAFT_STORE_AUTH=candid` explicitly. ### To Reproduce Set `SNAPCRAFT_STORE_AUTH=candid` when `export-login` and then try to use that file for publishing snap. ### Environment `ubuntu-latest. ### snapcraft.yaml ```shell core:22 ``` ### Relevant log output ```shell Run snapcore/action-publish@v1 Publishing snap "snapcrafting/myip/myip_1_amd64.snap"... /snap/bin/snapcraft upload snapcrafting/myip/myip_1_amd64.snap --release stable Starting Snapcraft 7.4.3 Logging execution to '/home/runner/.local/state/snapcraft/log/snapcraft-20230623-043854.750010.log' craft-store error: Credentials could not be parsed. Expected valid Ubuntu One credentials. Full execution log: '/home/runner/.local/state/snapcraft/log/snapcraft-20230623-043854.750010.log' Error: The process '/snap/bin/snapcraft' failed with exit code 1 ``` ### Additional context _No response_

Evaluation history

No evaluation history available.