How to use Forge CLI in a CI environment?

We’d gone back to v4.5.2 and then converted over to use FORGE_EMAIL and FORGE_API_TOKEN env variables instead of forge login as described in the getting started. This worked.

After the last few posts here I decided to try the latest cli version again and re-add the login using the token option but for me this still does not work and I get the following error:

Error: The CLI couldn’t securely store your login credentials in a local keychain. Ensure you have libsecret installed. If a local keychain is not available, use environment variables before trying again. See https://go.atlassian.com/dac/platform/forge/getting-started/#log-in-with-an-atlassian-api-token for more.

Simply removing the forge login and using the environment variables seems to work fine though so thats what we’re going with - and per the getting started docs that seems to be the prescribed way.

1 Like