GitHub OIDC - Bundle Analysis

Similar to our Codecov Action we provide support for OIDC authenticated uploads on while running in GitHub Actions.

OIDC Configuration Example

For users with OpenID Connect (OIDC) enabled, setting the uploadToken is not necessary. You can use OIDC with the oidc configuration as following.

// vite.config.js
import { defineConfig } from "vite";
import { codecovVitePlugin } from "@codecov/vite-plugin";

export default defineConfig({
  plugins: [
    // Put the Codecov vite plugin after all other plugins
    codecovVitePlugin({
      enableBundleAnalysis: true,
      bundleName: "example-vite-bundle",
      oidc: {
        useGitHubOIDC: true,
      },
    }),
  ],
});