SCM

This section contains information on the scm component for the Vela server.

This component is responsible for integrating with a source control management (SCM) system based off the configuration provided.

The SCM system is used by Vela for both authentication and authorization of interactions performed within the application.

Authentication Workflow

Configuration

The following options are used to configure the component:

NameDescriptionRequiredDefaultEnvironment Variables
scm.addrfully qualified url for the SCMtruehttps://github.comSCM_ADDR
VELA_SCM_ADDR
scm.clientclient ID from the generated OAuth application on the SCMtrueN/ASCM_CLIENT
VELA_SCM_CLIENT
scm.contextmessage to set in commit status on the SCMtruecontinuous-integration/velaSCM_CONTEXT
VELA_SCM_CONTEXT
scm.drivertype of client to control and operate SCMtruegithubSCM_DRIVER
VELA_SCM_DRIVER
scm.scopespermission scopes to apply for the OAuth credentials on the SCMtrue[ repo, repo:status, user:email, read:user, read:org ]SCM_SCOPES
VELA_SCM_SCOPES
scm.secretclient secret from the generated OAuth application on the SCMtrueN/ASCM_SECRET
VELA_SCM_SECRET
scm.webhook.addrurl for webhooks on the SCM to send requests tofalsethe address of the Vela server ($VELA_ADDR)SCM_WEBHOOK_ADDR
VELA_SCM_WEBHOOK_ADDR

Drivers

The following drivers are available to configure the component:

NameDescriptionDocumentation
githubuses a GitHub or GitHug Enterprise Server for the SCMhttps://github.com/about/

GitHub

From the GitHub official website:

GitHub is where the world builds software. Millions of developers and companies build, ship, and maintain their software on GitHub—the largest and most advanced development platform in the world.

The below configuration displays an example of creating a GitHub OAuth application:

OAuth Application

GitHub Enterprise Server

From the GitHub Enterprise official website:

GitHub Enterprise Server is your organization’s private copy of GitHub contained within a virtual appliance, hosted on premises or in the cloud, that you configure and control.

The below configuration displays an example of creating a GitHub Enterprise Server OAuth application:

OAuth Application

Last modified October 2, 2024: feat: otel tracing (#427) (9623a0f1)