Safeguard Docs
Enterprise Software Supply Chain Manager (ESSCM)IntegrationsSource Code (SCM)

Git (Generic)

Connect any Git repository using a generic Git URL

Permissions and token types

The Git integration guide lists the exact permissions each token needs, which token types work, and the current setup steps. Where this page and that guide differ, follow the guide.

Git (Generic URL) Integration

Connect any Git repository to Safeguard using a generic Git URL. This option works with any Git hosting service not explicitly listed.

Prerequisites

  • A Git repository URL (HTTPS or SSH)
  • For private repositories: Username and Password/Token

Public Repositories

Step 1: Navigate to Integrations

Go to Integrations from the sidebar and click Connect on the Git card.

Step 2: Enter Repository URL

  1. Select the Public tab
  2. Enter a Name for this configuration
  3. Optionally add a Description
  4. Enter the Git repository URL
  5. Click Add to add the URL to the list

Supported URL Formats

https://example.com/user/repo.git
https://example.com/user/repo
git://example.com/user/repo.git

Step 3: Review & Connect

  1. Review the added repository URLs
  2. Click Next to proceed
  3. Configure Branch/Tag, Project Name, and Version
  4. Click Connect to complete

Private Repositories

Step 1: Navigate to Integrations

Go to Integrations from the sidebar and click Connect on the Git card.

Step 2: Enter Credentials

  1. Select the Private tab
  2. Enter a Name for this configuration
  3. Optionally add a Description
  4. Enter the Git Repository URL
  5. Enter your credentials:
    • Username - Your Git username
    • Password / Token - Your password or access token
  6. Click Verify Credentials

Step 3: Review & Connect

  1. Once credentials are verified, configure settings
  2. Set Branch/Tag, Project Name, and Version
  3. Click Connect to complete

Supported Git Hosting Services

The generic Git integration works with:

ServiceURL Format
Giteahttps://gitea.example.com/user/repo
Gogshttps://gogs.example.com/user/repo
Forgejohttps://forgejo.example.com/user/repo
SourceHuthttps://git.sr.ht/~user/repo
Codeberghttps://codeberg.org/user/repo
Self-hosted Githttps://git.yourcompany.com/repo
Any Git serverAny valid Git URL

Authentication Methods

HTTPS with Password/Token

Most common method. Use your username and password or personal access token.

URL: https://git.example.com/user/repo.git
Username: your-username
Password: your-password-or-token

Token-based Authentication

For services that use token-only authentication:

Username: oauth2 (or your username)
Password: your-access-token

Troubleshooting

"Authentication failed"

  • Verify username and password/token are correct
  • Some services require tokens instead of passwords
  • Check if the account has access to the repository

"Repository not found"

  • Verify the URL is correct and accessible
  • Ensure the .git suffix is included if required
  • Check if the repository exists and is not deleted

"Connection refused"

  • Verify the Git server is accessible
  • Check firewall settings
  • Ensure the URL protocol (HTTP/HTTPS) is correct

On this page