Skip to main content

setup-scm

Introduction

The setup-scm Action creates and configures a source code repository to receive workflow execution triggers, enabling integration with the StackSpot platform.

Key Features of the Action:

  • Configuration of repositories for integration with StackSpot.
  • Support for multiple source control management (SCM) providers, including Azure, Bitbucket, GitHub, and GitLab.
  • Automating configuration parameters such as access tokens, project names, organizations, and repositories.
  • Ability to support specific configurations for on-premise providers like GitLab.

How ​​to use the Action

1. Running the Action

In the terminal, run the following command to start the Action:

stk run action stackspot-core/setup-scm@1.0.0

2. Action Inputs

During execution, you will be prompted for the following inputs, depending on the SCM provider selected:

FieldDescriptionRequired for
SCM providerSCM provider. Options: Azure, Bitbucket, Github, and Gitlab.All
Personal Access TokenPersonal Access Token.Azure, Github, and GitLab
Project NameProject name.Azure and GitLab
Project KeyProject key.Bitbucket
Organization NameOrganization Name.Azure and Github
Repository NameRepository name.Github, Bitbucket, and Azure
Group NameGroup name.GitLab
Is on premise?Indicates whether the GitLab provider is on-premise.GitLab
Workspace NameWorkspace name.Bitbucket
Client KeyClient key.Bitbucket
Client SecretClient secret.Bitbucket
Gitlab api domainGitLab API domain (default: gitlab.com).GitLab on-premise

After filling in the fields, the Action will automatically configure the repository for integration with StackSpot.