For AI agents: visit https://docs.codecov.com/llms.txt for an index of all pages formatted in Markdown and endpoints in OpenAPI.

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,
      },
    }),
  ],
});

Did this page help you?
Morty Proxy This is a proxified and sanitized view of the page, visit original site.