chore(ci): cache Bun dependencies in GitHub Actions#327
Closed
Paveltarno wants to merge 16 commits intomainfrom
Closed
chore(ci): cache Bun dependencies in GitHub Actions#327Paveltarno wants to merge 16 commits intomainfrom
Paveltarno wants to merge 16 commits intomainfrom
Conversation
Drop masked values from secrets list output — just show the secret names. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Aligns with copy style of other commands. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…layer Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add actions/cache@v5 for ~/.bun/install/cache across all 6 workflows that run bun install. Also add cache: true for Bun binary caching on the 4 workflows that were missing it (lint, knip, preview-publish, manual-publish). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
🚀 Package Preview Available!Install this PR's preview build with npm: npm i @base44-preview/cli@0.0.35-pr.327.93263cbPrefer not to change any import paths? Install using npm alias so your code still imports npm i "base44@npm:@base44-preview/cli@0.0.35-pr.327.93263cb"Or add it to your {
"dependencies": {
"base44": "npm:@base44-preview/cli@0.0.35-pr.327.93263cb"
}
}
Preview published to npm registry — try new features instantly! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
Description
This PR adds a
secretscommand group to the Base44 CLI, enabling users to manage project secrets (environment variables) directly from the terminal. It introducessecrets list,secrets set, andsecrets deletesubcommands, backed by a new core resource layer with full Zod schema validation. Thesecrets setcommand supports both inlineKEY=VALUEpairs and loading from a.envfile via--env-file.Related Issue
None
Type of Change
Changes Made
src/core/resources/secret/module withlistSecrets,setSecrets, anddeleteSecretAPI functions, Zod response schemas, and barrel exportssrc/cli/commands/secrets/withlist,set, anddeletesubcommands registered under asecretscommand groupsecrets setsupports inlineKEY=VALUEpairs and--env-file <path>(mutually exclusive); uses Commander.hook("preAction")for input validationdotenvdependency andsrc/core/utils/env.tsparseEnvFileutility for.envfile parsinggetSecretsCommandinsrc/cli/program.tstests/cli/secrets.spec.ts(12 test cases covering all commands, error paths, edge cases like values containing=)Base44APIMockwithmockSecretsList,mockSecretsSet,mockSecretsDelete, and corresponding error mock helpersdocs/commands.mdwith a section on Commander.hook("preAction")validation and a style rule for consistent copy across related commands; updatedREADME.mdcommand tableactions/cache@v5) to all six GitHub Actions workflows.npmrcto use standardregistry=keyTesting
npm test)Checklist
docs/(AGENTS.md) if I made architectural changesAdditional Notes
The
secrets set --env-fileflag resolves relative paths againstprocess.cwd()vianode:path'sresolve. Values in.envfiles are parsed bydotenv(comments and blank lines are ignored automatically). Thesecrets listcommand intentionally displays only secret names, never values, to avoid leaking sensitive data.🤖 Generated by Claude | 2026-02-24 00:00 UTC