GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Fixed Security Issues and Workflows by cs-raj · Pull Request #2744 · contentstack/cli Conversation
Contributor
Release:
|
| # | Change | PR / commits |
|---|---|---|
| 1 | Snyk Code: hardcoded secrets in test fixtures. Dummy values in unit-test fixtures replaced with the approved placeholders from the team's "Standard Approved Dummy Secrets" doc. 15 findings → 5; all 10 test-file findings cleared. Test files only, no source changes. | #2743 |
| 2 | Snyk dependency fixes (lockfile). pnpm-lock.yaml refreshed. |
7fcae91a5, b477256bc |
| 3 | Release workflow: npm trusted publishing (OIDC). Replaces the three release-production-*.yml workflows and .github/config/release.json with a single release.yml that runs on release: published (Node 24). Follow-ups: publish each cli package in its own step, in the original fixed order. |
#2741, 31eec6c22, aaa9cd28d |
| Property | Placeholder |
|---|---|
| apiKey | API_KEY / STACK_API_KEY (kept distinct in tokens-remove.test.ts) |
| access_token | ACCESS_TOKEN |
| password | PASSWORD |
| MFA test secrets (must be valid base32, ≥16 chars) | SECRETSECRETSECRET / TOKENTOKENTOKENTOKEN |
Files: contentstack-auth (tokens-remove.test.ts, mfa-handler.test.ts) and contentstack-utilities (auth-handler.test.ts, logger.test.ts).
With the new release.yml, merging to main no longer publishes to npm by itself. Publishing now happens when a GitHub release is published. Since no package versions change here, no publish is needed for this merge.
@contentstack/cli-utilities: 199 passing. @contentstack/cli-auth: 41 passing, 4 pending.snyk test --code --all-project: the 10 test-file findings are gone.5 Snyk Code findings remain, all in packages/contentstack-utilities/src/, intentionally untouched (changing them needs a design decision, not a placeholder):
encrypter.ts:14 and :27: default encryption key and scrypt salt. Changing either would break decryption of data existing users already have stored.helpers.ts:119 and :121: error-message label map (api_key: 'Stack API key'); a false positive.auth-handler.ts:147: http.createServer for the local OAuth callback on localhost; plain HTTP is intentional..talismanrc carries the checksum update for the new release.yml (from #2741).
🤖 Generated with Claude Code
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Back merge
Replace the three release-production workflows and release.json with one release.yml that runs on release:published, so the npm trusted publisher can be keyed on the filename. Drop NPM_TOKEN in favour of id-token: write (OIDC), run on Node 24 with npm@latest (trusted publishing needs npm >= 11.5.1), install with a frozen lockfile and check out the release tag without persisted credentials. Each package publishes in dependency order and is skipped when its version is already on npm, so one release publishes only what was bumped. Co-Authored-By: Claude Opus 5.5 <[email protected]>
cli-config and cli-auth do not depend on each other, so pnpm --sort was free to publish auth before config. List the five packages explicitly in the order the old release workflows used: utilities, command, config, auth, then core. A failed publish still stops the step before the next package. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Give each of the five packages its own publish step, as the old release workflows did, so a failed publish names the package in the Actions run and stops the job before the next one. The order is unchanged: utilities, command, config, auth, core. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Lock file regenerated (fixed 2 on its own: follow-redirects 1.16.0 -> 1.16.2). Direct upgrades: none Overrides: none added (the fast-uri 4.2.3, uuid 14.0.3 and js-yaml 5.5.0 pins are already on this branch) Vuln count vs main: snyk 41 -> 11, npm audit 7 -> 3. Build verified passing. Co-Authored-By: Claude Opus 5.5 <[email protected]>
chore(release): publish to npm with trusted publishing
… placeholders Replace Snyk-flagged dummy values in unit-test fixtures with the approved placeholders: apiKey -> API_KEY / STACK_API_KEY, access_token -> ACCESS_TOKEN, password -> PASSWORD, MFA test secrets -> SECRET / TOKEN. Coupled assertions updated. Test-only change, plus refreshed pnpm-lock.yaml. No source changes. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
mfa-handler requires >=16 char base32 secrets; the placeholder values were too short and failed CI. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…-fixtures fix: replace hardcoded secret literals in test fixtures with approved placeholders
There was an error while loading. Please reload this page.
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
🔒 Security Scan Results
⏱️ SLA Breach Summary
ℹ️ Vulnerabilities Without Available Fixes (Informational Only)The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:
Consider reviewing these vulnerabilities when fixes become available. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.