Repository navigation
Expand file tree
/
Copy pathaction.yml
More file actions
137 lines (133 loc) · 5.28 KB
/
Copy pathaction.yml
File metadata and controls
137 lines (133 loc) · 5.28 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# Copyright The Docker Agent Action authors
# SPDX-License-Identifier: Apache-2.0
name: "Docker Agent Runner"
description: "Run a Docker Agent AI agent with a single line"
author: "Docker"
branding:
icon: "cpu"
color: "blue"
inputs:
agent:
description: "Agent identifier (e.g., docker/code-analyzer from Docker Hub, or path to .yaml file)"
required: true
prompt:
description: "Prompt to pass to the agent. If not provided, uses a default based on the agent type"
required: false
mcp-gateway:
description: "Install mcp-gateway (true/false)"
required: false
default: "false"
mcp-gateway-version:
description: "Version of mcp-gateway to use (specifying this will enable mcp-gateway installation)"
required: false
default: "v0.22.0"
anthropic-api-key:
description: "Anthropic API key for Claude models (at least one API key required)"
required: false
openai-api-key:
description: "OpenAI API key (at least one API key required)"
required: false
google-api-key:
description: "Google API key for Gemini models (at least one API key required)"
required: false
aws-bearer-token-bedrock:
description: "AWS Bearer token for Bedrock models (at least one API key required)"
required: false
xai-api-key:
description: "xAI API key for Grok models (at least one API key required)"
required: false
nebius-api-key:
description: "Nebius API key (at least one API key required)"
required: false
mistral-api-key:
description: "Mistral API key (at least one API key required)"
required: false
github-token:
description: "GitHub token for API access (defaults to GITHUB_TOKEN)"
required: false
timeout:
description: "Timeout in seconds for agent execution (0 for no timeout)"
required: false
default: "0"
debug:
description: "Enable debug mode with verbose logging (true/false)"
required: false
default: "false"
working-directory:
description: "Working directory to run the agent in"
required: false
default: "."
yolo:
description: "Enable yolo mode - auto-approve all prompts (true/false)"
required: false
default: "true"
max-retries:
description: "Maximum number of retries on failure (0 = no retries)"
required: false
default: "2"
retry-delay:
description: "Base delay in seconds between retries (doubles each attempt)"
required: false
default: "5"
retry-on-timeout:
description: "Number of additional retry attempts when the agent times out (exit code 124). Independent of max-retries — both budgets can be consumed in the same run. Default 0 = no timeout retries."
required: false
default: "0"
total-timeout:
description: "Total wall-clock budget in seconds across all attempts, retry delays included (0 = unlimited). The last attempt is capped to the remaining budget and a retry only starts with at least 60 s left, so the action always finishes within this budget. Set it below the job's timeout-minutes to keep post-run cleanup steps alive."
required: false
default: "0"
no-retry-pattern:
description: "Regex tested against the verbose agent log after a failed attempt. On match, remaining retries are skipped — use it when a retry would repeat a side effect the failed attempt already committed (e.g. 'pullrequestreview-[0-9]+' once a PR review was posted). Empty = disabled."
required: false
default: ""
extra-args:
description: "Additional arguments to pass to docker agent run"
required: false
default: ""
add-prompt-files:
description: "Comma-separated list of files to append to the prompt (e.g., 'AGENTS.md,CLAUDE.md')"
required: false
default: ""
skip-summary:
description: "Skip writing agent output to the job summary (useful when callers write their own summary)"
required: false
default: "false"
org-membership-token:
description: "PAT with read:org scope for org membership authorization checks (preferred over author_association)"
required: false
default: ""
auth-org:
description: "GitHub organization to check membership against (used with org-membership-token)"
required: false
default: ""
skip-auth:
description: "Skip the built-in authorization check (use when the calling workflow already performed its own auth)"
required: false
default: "false"
outputs:
exit-code:
description: "Exit code from docker agent run"
output-file:
description: "Path to the output log file"
docker-agent-version:
description: "Version of Docker Agent that was used"
cagent-version:
description: "Version of Docker Agent that was used (deprecated: use docker-agent-version)"
mcp-gateway-installed:
description: "Whether mcp-gateway was installed (true/false)"
execution-time:
description: "Agent execution time in seconds"
verbose-log-file:
description: "Path to the full verbose agent log (includes tool calls)"
security-blocked:
description: "Whether execution was blocked due to security concerns (true/false)"
secrets-detected:
description: "Whether secrets were detected in output"
prompt-suspicious:
description: "Whether suspicious content was stripped from the prompt (true/false)"
input-risk-level:
description: "Risk level of input (low/medium/high)"
runs:
using: "node24"
main: "dist/main.js"