@thegpvc/gp-foundry 0.1.2 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -5
- package/actions/agent-context/README.md +36 -0
- package/actions/agent-context/action.yml +18 -0
- package/actions/agent-context/dist/index.cjs +43 -35
- package/actions/agent-fallback/README.md +13 -5
- package/actions/agent-fallback/action.yml +81 -16
- package/actions/merge-gate/README.md +55 -7
- package/actions/merge-gate/action.yml +27 -0
- package/actions/merge-gate/dist/index.cjs +52 -52
- package/actions/run-agent/action.yml +26 -0
- package/actions/sanitize-untrusted-input/dist/index.cjs +16 -16
- package/dist/cli/index.cjs +98 -95
- package/package.json +1 -1
- package/roles/software/fixer.md +7 -1
- package/schema/config.schema.json +5 -0
- package/skill/SKILL.md +7 -2
- package/skill/reference/node-types.md +12 -3
- package/skill/templates/foundry.config.yaml +3 -0
- package/skill/templates/policy-merge.yaml +14 -0
- package/skill/templates/scope.yaml +6 -2
|
@@ -73,6 +73,15 @@ inputs:
|
|
|
73
73
|
(passthrough for flags like --max-turns, --add-dir, etc.).
|
|
74
74
|
required: false
|
|
75
75
|
default: ""
|
|
76
|
+
extra-env:
|
|
77
|
+
description: >-
|
|
78
|
+
Optional newline-separated NAME=VALUE pairs exported into the agent's
|
|
79
|
+
environment before the CLI runs, so roles can reach extra secrets (e.g. a
|
|
80
|
+
Sentry token). Values are passed in by the caller because composites have
|
|
81
|
+
no secrets context; the compiler fills these from config.agent.secrets, one
|
|
82
|
+
NAME=<value> pair per line. Values are never echoed.
|
|
83
|
+
required: false
|
|
84
|
+
default: ""
|
|
76
85
|
|
|
77
86
|
runs:
|
|
78
87
|
using: composite
|
|
@@ -163,6 +172,7 @@ runs:
|
|
|
163
172
|
MODEL: ${{ inputs.model }}
|
|
164
173
|
ALLOWED_TOOLS: ${{ inputs.allowed-tools }}
|
|
165
174
|
EXTRA_ARGS: ${{ inputs.extra-args }}
|
|
175
|
+
EXTRA_ENV: ${{ inputs.extra-env }}
|
|
166
176
|
run: |
|
|
167
177
|
set -uo pipefail
|
|
168
178
|
|
|
@@ -171,6 +181,22 @@ runs:
|
|
|
171
181
|
exit 1
|
|
172
182
|
fi
|
|
173
183
|
|
|
184
|
+
# Export any caller-provided extra env (NAME=VALUE per line) so roles can reach
|
|
185
|
+
# extra secrets (config.agent.secrets). Values are never echoed; GitHub also masks
|
|
186
|
+
# registered secret values in logs. Split on the FIRST '=' so values may contain '='.
|
|
187
|
+
if [ -n "${EXTRA_ENV:-}" ]; then
|
|
188
|
+
while IFS= read -r _line; do
|
|
189
|
+
[ -z "$_line" ] && continue
|
|
190
|
+
_name="${_line%%=*}"
|
|
191
|
+
_value="${_line#*=}"
|
|
192
|
+
case "$_name" in
|
|
193
|
+
[A-Za-z_][A-Za-z0-9_]*) export "$_name=$_value" ;;
|
|
194
|
+
*) echo "::warning::run-agent: skipping malformed extra-env entry" ;;
|
|
195
|
+
esac
|
|
196
|
+
done <<< "$EXTRA_ENV"
|
|
197
|
+
unset _line _name _value
|
|
198
|
+
fi
|
|
199
|
+
|
|
174
200
|
# Tool policy lives in the role front-matter. If allowed-tools was not
|
|
175
201
|
# passed explicitly, read `tools: "..."` from the role file's YAML
|
|
176
202
|
# front-matter so tools are editable content (no rebuild needed).
|