Skip to content

fix(gcp-secret-get): set export_to_environment: true - #34

Merged
gambe94 merged 1 commit into
mainfrom
fix/gcp-secret-get-export-to-environment
Aug 20, 2026
Merged

fix(gcp-secret-get): set export_to_environment: true#34
gambe94 merged 1 commit into
mainfrom
fix/gcp-secret-get-export-to-environment

Conversation

@gambe94

@gambe94 gambe94 commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • google-github-actions/get-secretmanager-secrets@v3 defaults export_to_environment to false. Without setting it explicitly, $SECRET_JSON is empty in the next step even after a successful fetch — the JSON-parse guard then (correctly) fires with "Secret ... is empty or not valid JSON", masking a working fetch as a broken one.
  • Caught by the first real run of sf-org-login's new gcp branch against the live salesforce-devhub secret (sf-external-app-bootstrap's setup-external-app.yml, run 32396528969) — auth succeeded, the fetch action itself reported success, but the export step had nothing to read.

Test plan

  • actionlint clean
  • npm run all — unaffected (composite-action-only change), all green via the pre-push hook
  • This PR's CI
  • Re-run of setup-external-app.yml against devhub once this lands and @v2 moves

🤖 Generated with Claude Code

google-github-actions/get-secretmanager-secrets@v3 defaults this to false --
without it, $SECRET_JSON is empty in the next step even after a successful
fetch, so the JSON-parse guard fires with "Secret ... is empty or not valid
JSON" even though the fetch genuinely worked. Caught by the first real
end-to-end run of sf-org-login's gcp branch against the live
salesforce-devhub secret.
@gambe94
gambe94 merged commit 8318815 into main Aug 20, 2026
2 checks passed
@gambe94
gambe94 deleted the fix/gcp-secret-get-export-to-environment branch August 20, 2026 17:17
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