# GitHub Actions OIDC authentication

Canonical: https://snapvisor.io/docs/learn/integrations/github-oidc-authentication

> Authenticate GitHub Actions builds to Snapvisor with short-lived OpenID Connect tokens instead of a long-lived project token.



Instead of a long-lived project token, let GitHub Actions authenticate to Snapvisor with short-lived OpenID Connect tokens minted per workflow run.

## Why OIDC [#why-oidc]

A static `ARGOS_TOKEN` is a secret you have to store and rotate. With OIDC, GitHub issues a short-lived token scoped to the individual workflow run, and Snapvisor verifies it — there is no persistent secret in your CI configuration.

## Enabling it [#enabling-it]

* Connect the project to its GitHub repository — OIDC is only offered once the repository is linked.
* Turn on GitHub Actions OIDC in the project's settings. Builds from that repository's workflows then authenticate without a project token.

## Production deployments [#production-deployments]

A production deployment over OIDC only comes from a push, workflow\_dispatch or schedule run on the production branch; pull request, tag and every other event deploy as previews.

## Choosing between the options [#choosing-between-the-options]

If you simply want to drop the secret, plain [tokenless authentication](/learn/integrations/github-tokenless-authentication) is the simplest path. Prefer OIDC when your security policy calls for per-run, verifiable, short-lived credentials.

