-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaction.yml
More file actions
72 lines (68 loc) · 2.23 KB
/
action.yml
File metadata and controls
72 lines (68 loc) · 2.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: 'Erode Architecture Drift'
description: 'Detect architecture erosion by comparing GitHub pull requests against an architecture model'
branding:
icon: 'shield'
color: 'blue'
inputs:
model-format:
description: 'Architecture model format (likec4 or structurizr)'
required: false
default: 'likec4'
model-repo:
description: 'Repository containing the architecture model (owner/repo)'
required: true
model-path:
description: 'Path to the model within the model repository'
required: false
default: '.'
model-ref:
description: 'Git ref (branch/tag) of the model repository to use'
required: false
default: 'main'
ai-provider:
description: 'AI provider to use (gemini, openai, or anthropic)'
required: false
default: 'anthropic'
anthropic-api-key:
description: 'Anthropic API key (required when ai-provider is anthropic)'
required: false
gemini-api-key:
description: 'Gemini API key (required when ai-provider is gemini)'
required: false
openai-api-key:
description: 'OpenAI API key (required when ai-provider is openai)'
required: false
github-token:
description: 'GitHub token for API access'
required: true
model-repo-token:
description: 'GitHub token for accessing the model repository (if different from github-token)'
required: false
open-pr:
description: >-
Open a PR with suggested model updates.
Set to "true" to always open/update, "auto" to only update if
a model PR was previously created, or "false" to never open.
required: false
default: 'false'
fail-on-violations:
description: 'Fail the action if architectural violations are detected'
required: false
default: 'false'
skip-file-filtering:
description: 'Skip file filtering and analyze all changed files'
required: false
default: 'false'
outputs:
has-violations:
description: 'Whether architectural violations were detected'
violations-count:
description: 'Number of violations detected'
analysis-summary:
description: 'Summary of the analysis results'
model-format:
description: 'The architecture model format used'
runs:
using: 'docker'
# image: 'Dockerfile'
image: 'docker://ghcr.io/erode-app/erode:0'