Skip to content

ci: replace zizmor and cargo-deny with oxc-project/security-action#1635

Merged
fengmk2 merged 2 commits into
mainfrom
ci/security-action
May 20, 2026
Merged

ci: replace zizmor and cargo-deny with oxc-project/security-action#1635
fengmk2 merged 2 commits into
mainfrom
ci/security-action

Conversation

@Boshen
Copy link
Copy Markdown
Member

@Boshen Boshen commented May 19, 2026

Summary

  • Remove .github/workflows/zizmor.yml and .github/workflows/deny.yml workflows
  • Remove deny.toml configuration
  • Add .github/workflows/security.yml using oxc-project/security-action@v1.0.5

🤖 Generated with Claude Code

@netlify
Copy link
Copy Markdown

netlify Bot commented May 19, 2026

Deploy Preview for viteplus-preview canceled.

Name Link
🔨 Latest commit abf6601
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/6a0da1b9ac838b0008867331

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c1a81593cc

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/security.yml Outdated
@Boshen Boshen force-pushed the ci/security-action branch from c1a8159 to 79e8f68 Compare May 20, 2026 01:29
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 79e8f681fb

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/security.yml
@Boshen Boshen requested a review from fengmk2 May 20, 2026 01:56
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Boshen Boshen force-pushed the ci/security-action branch from fd4262e to 3aa21dc Compare May 20, 2026 07:45
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3aa21dc7b5

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/security.yml
@fengmk2
Copy link
Copy Markdown
Member

fengmk2 commented May 20, 2026

ci fix in #1645

fengmk2 added a commit that referenced this pull request May 20, 2026
…lake

The command-upgrade-check snap test was failing on PR CIs running after
v0.1.22 shipped because dev's package.json version (0.1.22) now equals
npm latest (0.1.22), so `vp upgrade --check` takes the "Already up to
date" branch instead of the recorded "Update available" output.

Query the `alpha` dist-tag instead. Alpha is always a different version
from latest (currently 0.1.21-alpha.7), so the "Update available" branch
is always taken and the snapshot is stable across release cycles. The
semver normalization in the snap-test framework masks the actual version
numbers, so the body of snap.txt is unchanged.

Same root cause as the cli-e2e-test upgrade-bash fix in this PR; the
snap test surfaced on PR #1635 first because that PR also triggered CI
after the release.
fengmk2 added a commit that referenced this pull request May 20, 2026
## Summary

Right after a release commit lands on main, the dev build's
`package.json` version equals npm latest. Two CI checks were hard-coded
to assert outputs that only happen when those versions differ, so they
fail on every release-day PR run.

**CLI E2E `Test upgrade (bash/pwsh/cmd)`** (ci.yml) — asserted
`UPDATED_VERSION != INITIAL_VERSION` after `vp upgrade --force`. When
dev == latest, the upgrade runs end-to-end but the version is unchanged.
- Fix: assert on the `current` install dir basename (`local-dev-<ts>/` →
`<version>/`) instead. The dir flip proves the download/extract/swap and
rollback flows ran. Node's `fs.realpathSync` resolves both Unix symlinks
and Windows junctions, so all three shells share the same helper.

**Snap test `command-upgrade-check`**
(`packages/cli/snap-tests-global/command-upgrade-check/`) — recorded the
"Update available" output of `vp upgrade --check`. When dev == latest,
the actual output is "Already up to date".
- Fix: query the `alpha` dist-tag instead. Alpha is always a different
version from latest (currently `0.1.21-alpha.7`), so the "Update
available" branch is always taken. Semver normalization masks the actual
version, so the snap body is unchanged.

## Failure examples

- Upgrade test:
https://github.com/voidzero-dev/vite-plus/actions/runs/26112690623/job/76915605617
- Snap test:
https://github.com/voidzero-dev/vite-plus/actions/runs/26148842387/job/76910949450
(also blocks #1635)

## Test plan

- [ ] CI passes on this PR.
- [ ] After next release, both checks still pass on the post-release-day
merge-to-main run.

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Low risk: changes only affect CI assertions and snapshot test inputs,
not production code. Main risk is masking a real regression if install
directory swapping semantics change.
> 
> **Overview**
> Makes the CI `vp upgrade` E2E checks resilient to release-day runs by
**asserting on the `.vite-plus/current` install directory target** (via
`fs.realpathSync`) instead of comparing CLI versions, across
bash/pwsh/cmd.
> 
> Stabilizes the `command-upgrade-check` snapshot by running `vp upgrade
--check` against the `alpha` dist-tag so the *"Update available"* branch
is consistently exercised.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
e4556ae. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
@fengmk2 fengmk2 merged commit fa7acab into main May 20, 2026
39 checks passed
@fengmk2 fengmk2 deleted the ci/security-action branch May 20, 2026 12:21
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.

2 participants