Skip to content

fix: pass FeatureOS creds via env vars in daily workflow#5

Open
mzeier wants to merge 1 commit into
mainfrom
fix/featureos-daily-creds
Open

fix: pass FeatureOS creds via env vars in daily workflow#5
mzeier wants to merge 1 commit into
mainfrom
fix/featureos-daily-creds

Conversation

@mzeier

@mzeier mzeier commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

Problem

The daily report run logged:

WARN: featureos-cli returned 0 posts.
  raw stdout: 'Error: API Key not set.'

so the report's FeatureOS / TB Pro Ideas section has been silently empty.

Root cause

The daily workflow hand-wrote ~/.featureos.yaml with keys api_key:/jwt:, but the @featureos/cli binary reads its credentials from config fields APIKey/JWTToken (and env vars FEATUREOS_API_KEY / FEATUREOS_JWT). The underscore keys don't map, so the API key read as unset.

Fix

Drop the file-writing step and pass the documented env vars directly to the generate step — exactly what the weekly workflow (tbpro-weekly.yml) already does. Whitespace is stripped from the secrets the same way the weekly workflow strips them.

Verified the env-var names against the CLI binary's own help output (API Key (env: FEATUREOS_API_KEY), JWT Token (env: FEATUREOS_JWT)).

The daily report logged 'Error: API Key not set.' from featureos-cli,
producing an empty FeatureOS section. The workflow hand-wrote
~/.featureos.yaml with keys 'api_key'/'jwt', but the CLI's config fields
are APIKey/JWTToken, so those keys read as unset.

Drop the file-writing step and pass the documented env vars
(FEATUREOS_API_KEY / FEATUREOS_JWT) directly to the generate step,
matching the weekly workflow which already does this correctly.
@mzeier mzeier requested a review from lisajill June 20, 2026 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant