fix: tighten evidence artifact guarantees
This commit is contained in:
@@ -230,14 +230,20 @@ function evidenceDocumentation(
|
||||
];
|
||||
}
|
||||
const evidenceVariables = variables.filter(({ role }) => role === "EVIDENCE");
|
||||
const requiredVariables = evidenceVariables.filter(({ suffix }) => suffix !== "SESSION_TOKEN_FILE");
|
||||
const optionalVariables = evidenceVariables.filter(({ suffix }) => suffix === "SESSION_TOKEN_FILE");
|
||||
return [
|
||||
...common,
|
||||
...details,
|
||||
`- Maximum chunk characters: \`${policy.max_chunk_chars}\``,
|
||||
`- Retained published generations: \`${policy.retain_published_generations}\``,
|
||||
...(evidenceVariables.length === 0 ? [] : [
|
||||
...(requiredVariables.length === 0 ? [] : [
|
||||
"- Required installation file variables:",
|
||||
...evidenceVariables.map(({ name }) => ` - \`${name}\``),
|
||||
...requiredVariables.map(({ name }) => ` - \`${name}\``),
|
||||
]),
|
||||
...(optionalVariables.length === 0 ? [] : [
|
||||
"- Optional installation file variables:",
|
||||
...optionalVariables.map(({ name }) => ` - \`${name}\``),
|
||||
]),
|
||||
"",
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user