Skip to content

Warn once per job about unencrypted snapshots - #161

Closed
CNSeniorious000 wants to merge 1 commit into
mainfrom
fix/plaintext-snapshot-warning
Closed

CNSeniorious000 wants to merge 1 commit into
mainfrom
fix/plaintext-snapshot-warning

Conversation

@CNSeniorious000

Copy link
Copy Markdown
Member

Saving the session and debug events produces the same plaintext warning twice.

Record the first warning in GITHUB_ENV so later archive steps in the job do not repeat it. Either archive still warns when saved alone. Encrypted saves do not set the marker, and a new job warns again even on a reused runner.

Regression tests reproduced the duplicate warning in both archive orders before the fix. They also cover failed and encrypted saves, environment propagation between steps, and a fresh job.

Validation: bun test scripts/snapshot.test.ts on the action's pinned Bun 1.4.4 — 14 passed, 0 failed; git diff --check.

Fixes #160.

@coderabbitai

coderabbitai Bot commented Nov 22, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 27 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 92c3458d-d30b-45a3-b10b-0504f2a6f263
Commits

Reviewing files that changed from the base of the PR and between 34fc7a2 and 92e50be.

Files selected for processing: 2

  • scripts/snapshot.test.ts
  • scripts/snapshot.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-22T19:44:16.072996Z
We couldn’t complete this review. Comment @codex review to try again.
92e50be PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@CNSeniorious000

Copy link
Copy Markdown
Member Author

Superseded by #162, which lands the same once-per-job marker for #160 as 52351a5. Closing to keep a single fix. Its two extra test angles (both archive save orders, and a fresh job warning again on a reused runner) are noted here in case we want to port that coverage later.

@CNSeniorious000
CNSeniorious000 deleted the fix/plaintext-snapshot-warning branch November 22, 2026 21:10
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.

emit the unencrypted snapshot warning only once per run

1 participant