83 lines
1.8 KiB
YAML
83 lines
1.8 KiB
YAML
# GitLab SCM Connector
|
|
# GitLab.com and self-hosted GitLab integration
|
|
|
|
id: stellaops.scm.connector.gitlab
|
|
name: GitLab Connector
|
|
version: 1.0.0
|
|
description: |
|
|
Integrates with GitLab for remediation automation.
|
|
Supports MR creation, pipeline triggers, and security dashboards.
|
|
assembly: StellaOps.AdvisoryAI.ScmConnector.GitLab.dll
|
|
|
|
capabilities:
|
|
- merge-request
|
|
- pipeline-trigger
|
|
- security-dashboard
|
|
- dependency-scanning
|
|
- container-scanning
|
|
|
|
requirements:
|
|
runtime: net10.0
|
|
platforms: [linux-x64, linux-arm64, win-x64, osx-arm64]
|
|
|
|
enabled: false
|
|
priority: 100
|
|
|
|
config:
|
|
# GitLab API settings
|
|
api:
|
|
# Base URL (empty = gitlab.com)
|
|
baseUrl: "${GITLAB_BASE_URL:-}"
|
|
# API version
|
|
apiVersion: "v4"
|
|
|
|
# Authentication
|
|
auth:
|
|
# Authentication type: token, oauth
|
|
type: token
|
|
# Personal Access Token or Project Token
|
|
token: "${GITLAB_TOKEN:-}"
|
|
# OAuth credentials (for oauth type)
|
|
clientId: "${GITLAB_OAUTH_CLIENT_ID:-}"
|
|
clientSecret: "${GITLAB_OAUTH_CLIENT_SECRET:-}"
|
|
|
|
# Merge request settings
|
|
mergeRequest:
|
|
# Create as draft
|
|
draft: false
|
|
# Remove source branch on merge
|
|
removeSourceBranch: true
|
|
# Squash commits
|
|
squash: true
|
|
# Assignees
|
|
assignees: []
|
|
# Labels
|
|
labels: ["security", "dependencies", "stellaops"]
|
|
# Description template
|
|
descriptionTemplate: |
|
|
## Security Remediation
|
|
|
|
This MR was automatically created by StellaOps.
|
|
|
|
### Vulnerabilities Addressed
|
|
{{#each vulnerabilities}}
|
|
- **{{this.id}}**: {{this.summary}}
|
|
{{/each}}
|
|
|
|
### Changes
|
|
{{changes}}
|
|
|
|
/label ~security ~dependencies
|
|
|
|
# Pipeline settings
|
|
pipeline:
|
|
# Trigger pipeline on MR creation
|
|
triggerPipeline: true
|
|
# Wait for pipeline
|
|
waitForPipeline: false
|
|
|
|
# Rate limiting
|
|
rateLimit:
|
|
requestsPerSecond: 10
|
|
burstSize: 20
|