GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — vp run does not forward OIDC tokens from env (github action) · Issue #2189 · voidzero-dev/vite-plus

vp run does not forward OIDC tokens from env (github action) #2189

New issue
Copy link
New issue
Copy link
Closed
Bug
Closed
vp run does not forward OIDC tokens from env (github action)#2189
Bug
Copy link
Assignees
naokihaba
Labels
pending triage
Milestone
RC

Description

@jaenyf
jaenyf
opened on Jul 16, 2026
Issue body actions

Describe the bug

When running npm stage publish inside a vp run script, the OIDC environment variables set by github action are not correctly forwarded to the npm binary. That results in npm skiping OIDC authentication and falling back to node token authentication.

Reproduction

see the steps to reproduce

Steps to reproduce

from a publish.yml file, as soon as you replace this :

- name: Working Publishing
        env:
          ACTIONS_ID_TOKEN_REQUEST_URL: ${{ env.ACTIONS_ID_TOKEN_REQUEST_URL }}
          ACTIONS_ID_TOKEN_REQUEST_TOKEN: ${{ env.ACTIONS_ID_TOKEN_REQUEST_TOKEN }}
        run: npm run -w <MyPackageScope> release
- name: Failing Publishing
        env:
          ACTIONS_ID_TOKEN_REQUEST_URL: ${{ env.ACTIONS_ID_TOKEN_REQUEST_URL }}
          ACTIONS_ID_TOKEN_REQUEST_TOKEN: ${{ env.ACTIONS_ID_TOKEN_REQUEST_TOKEN }}
        run: vp run release

the npm stage publish fails.
A silly log from npm clearly shows:
npm silly oidc Skipped because incorrect permissions for id-token within GitHub workflow

The main package.json script entry contains :

"scripts": {
    "release": "npm run -w <MyPackageScope> release"
}

the final run command in the scoped package is

"scripts": {
    "release": "npm stage publish --provenance"
}

System Info

Environment:
  Version       24.18.0
  Source        engines.node
  Source Path   /home/runner/work/time-provider/time-provider/package.json
  Project Root  /home/runner/work/time-provider/time-provider
Tool Paths:
  node  /home/runner/.vite-plus/js_runtime/node/24.18.0/bin/node
  npm   /home/runner/.vite-plus/js_runtime/node/24.18.0/bin/npm
  npx   /home/runner/.vite-plus/js_runtime/node/24.18.0/bin/npx
Package Manager:
  Name          bun
  Version       1.3.14
  Source        packageManager
  Source Path   /home/runner/work/time-provider/time-provider/package.json
  Project Root  /home/runner/work/time-provider/time-provider
  Bin Path      /home/runner/.vite-plus/package_manager/bun/1.3.14/bun/bin/bun


vp v0.2.4
Local vite-plus:
  vite-plus  v0.2.4
Tools:
  vite             v8.1.3
  rolldown         v1.1.4
  vitest           v4.1.10
  oxfmt            v0.57.0
  oxlint           v1.72.0
  oxlint-tsgolint  v0.24.0
  tsdown           v0.22.3
Environment:
  Package manager  bun v1.3.14
  Node.js          v24.18.0 (engines.node)

Used Package Manager

bun

Logs

Validations

  • Read the Contributing Guidelines.
  • Check that there isn't already an issue for the same bug.
  • Confirm this is a Vite+ issue and not an upstream issue (Vite, Vitest, tsdown, Rolldown, or Oxc).
  • The provided reproduction is a minimal reproducible example.
Reacted by Patt O'Brien

Activity

  1. jaenyf
    added
    pending triage
    on Jul 16, 2026
  2. jaenyf
    added the
    Bug
    issue type on Jul 16, 2026
  3. naokihaba
    self-assigned this
    on Jul 17, 2026
  4. naokihaba commented on Aug 20, 2026

    @naokihaba
    naokihaba
    on Aug 20, 2026
    Collaborator
    More actions

    relates: voidzero-dev/vite-task#690

    Reacted by jaenyf
  5. fengmk2
    added this to the RC milestone on Aug 21, 2026
  6. fengmk2
    added a commit that references this issue on Sep 19, 2026

    fix(env): pass through GitHub Actions OIDC variables (#691)

    fab74a4
  7. naokihaba commented on Sep 19, 2026

    @naokihaba
    naokihaba
    on Sep 19, 2026
    Collaborator
    More actions

    @jaenyf

    Thank you for your patience. The upstream fix has been merged in voidzero-dev/vite-task#691. Once it is included in the next Vite+ release, could you please verify the fix on your end?

    Reacted by jaenyf
  8. jaenyf commented on Sep 22, 2026

    @jaenyf
    jaenyf
    on Sep 22, 2026
    Author
    More actions

    @jaenyf

    Thank you for your patience. The upstream fix has been merged in voidzero-dev/vite-task#691. Once it is included in the next Vite+ release, could you please verify the fix on your end?

    Sure, thanks for your work.

    Reacted by NaokiHaba
  9. fengmk2 commented on Sep 22, 2026

    @fengmk2
    fengmk2
    on Sep 22, 2026
    Member
    More actions

    Will be fixed in next version.

  10. fengmk2
    closed this as completedon Sep 22, 2026
  11. jaenyf commented on Sep 24, 2026

    @jaenyf
    jaenyf
    on Sep 24, 2026
    Author
    More actions

    Confirmed working on my side. Nice work.

    @jaenyf
    Thank you for your patience. The upstream fix has been merged in voidzero-dev/vite-task#691. Once it is included in the next Vite+ release, could you please verify the fix on your end?

    Sure, thanks for your work.

    Confirmed working on my side !

    Reacted by NaokiHaba
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @naokihaba
    naokihaba

Labels

pending triage

Type

Bug

Fields

Priority

None yet

Effort

None yet

Target date

None yet

Start date

None yet

Projects

No projects

    Milestone

    • RC

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.