refactor: remove GitLab CI config and docs after full Gitea migration
Some checks failed
Some checks failed
- Delete .gitlab-ci.yml (replaced by .gitea/workflows/ci.yml) - Delete docs/deployment/gitlab.md (superseded by gitea.md) - Update audit rules to reference .gitea/workflows/*.yml - Update validate_audit.py to check Gitea CI paths - Clean up GitLab references in gitea.md, mkdocs.yml, .dockerignore - Mark IPv6 AAAA records as completed in hetzner docs Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -264,27 +264,23 @@ class AuditValidator(BaseValidator):
|
||||
str(self.project_root),
|
||||
)
|
||||
|
||||
# Check CI/CD exists (GitHub or GitLab)
|
||||
# Check CI/CD exists (Gitea or GitHub)
|
||||
gitea_ci = self.project_root / ".gitea" / "workflows" / "ci.yml"
|
||||
github_ci = self.project_root / ".github" / "workflows" / "ci.yml"
|
||||
gitlab_ci = self.project_root / ".gitlab-ci.yml"
|
||||
if not github_ci.exists() and not gitlab_ci.exists():
|
||||
if not gitea_ci.exists() and not github_ci.exists():
|
||||
self.add_warning(
|
||||
"COMP-EVID-001",
|
||||
"CI workflow for automated testing recommended",
|
||||
".gitlab-ci.yml or .github/workflows/ci.yml",
|
||||
".gitea/workflows/ci.yml or .github/workflows/ci.yml",
|
||||
)
|
||||
|
||||
# Check code review process (GitHub or GitLab)
|
||||
# Check code review process
|
||||
github_pr_template = self.project_root / ".github" / "PULL_REQUEST_TEMPLATE.md"
|
||||
gitlab_mr_templates = self.project_root / ".gitlab" / "merge_request_templates"
|
||||
has_mr_template = github_pr_template.exists() or (
|
||||
gitlab_mr_templates.exists() and any(gitlab_mr_templates.iterdir())
|
||||
)
|
||||
if not has_mr_template:
|
||||
if not github_pr_template.exists():
|
||||
self.add_warning(
|
||||
"COMP-POL-001",
|
||||
"Merge request template recommended for code review",
|
||||
".gitlab/merge_request_templates/ or .github/PULL_REQUEST_TEMPLATE.md",
|
||||
"Pull request template recommended for code review",
|
||||
".github/PULL_REQUEST_TEMPLATE.md",
|
||||
)
|
||||
|
||||
# ==================
|
||||
@@ -371,19 +367,13 @@ class AuditValidator(BaseValidator):
|
||||
"pyproject.toml",
|
||||
)
|
||||
|
||||
# Check for dependency scanning (GitHub Dependabot or GitLab)
|
||||
# Check for dependency scanning
|
||||
dependabot = self.project_root / ".github" / "dependabot.yml"
|
||||
gitlab_ci = self.project_root / ".gitlab-ci.yml"
|
||||
has_dep_scanning = dependabot.exists()
|
||||
if not has_dep_scanning and gitlab_ci.exists():
|
||||
# Check if GitLab CI includes dependency scanning
|
||||
ci_content = gitlab_ci.read_text()
|
||||
has_dep_scanning = "dependency_scanning" in ci_content.lower()
|
||||
if not has_dep_scanning:
|
||||
if not dependabot.exists():
|
||||
self.add_info(
|
||||
"THIRD-VULN-002",
|
||||
"Consider enabling dependency scanning for security updates",
|
||||
".gitlab-ci.yml (include dependency_scanning) or .github/dependabot.yml",
|
||||
".github/dependabot.yml",
|
||||
)
|
||||
|
||||
# Check for insecure package sources
|
||||
|
||||
Reference in New Issue
Block a user