feat: global reusable workflows (workflow_call) + thin caller template
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
29
workflows/caller.example.yml
Normal file
29
workflows/caller.example.yml
Normal file
@@ -0,0 +1,29 @@
|
||||
# GLOBALER CI-AI-Aufruf — das EINZIGE, was ein Ziel-Repo braucht.
|
||||
# Kopie nach: <ziel-repo>/.gitea/workflows/ci-ai.yml
|
||||
#
|
||||
# Holt die komplette Logik zentral aus user2595/ci-ai (reusable workflows) — keine
|
||||
# Skripte/Workflows ins Repo kopieren. Update der Logik passiert einmal in ci-ai.
|
||||
#
|
||||
# Voraussetzungen (einmalig zentral eingerichtet):
|
||||
# 1. Runner instanzweit registriert (Label `eulernest`)
|
||||
# 2. anonymer Clone für public Repos erlaubt
|
||||
# 3. ANTHROPIC_API_KEY als Org-/Instanz-Actions-Secret (für die KI-Schritte;
|
||||
# ohne ihn laufen die Scans, die KI-Teile überspringen sich sauber)
|
||||
# 4. für „hart blockieren": den `security`-Check in der Branch-Protection
|
||||
# als required markieren
|
||||
name: CI-AI
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches: [main, master]
|
||||
|
||||
jobs:
|
||||
security:
|
||||
uses: user2595/ci-ai/.gitea/workflows/reusable-security.yml@main
|
||||
secrets: inherit
|
||||
|
||||
review:
|
||||
if: github.event_name == 'pull_request'
|
||||
uses: user2595/ci-ai/.gitea/workflows/reusable-ai-review.yml@main
|
||||
secrets: inherit
|
||||
Reference in New Issue
Block a user