Skip to content

[instructions] Sync github-agentic-workflows.md with v0.40.1 — add safe-outputs scripts field#21874

Merged
pelikhan merged 1 commit intomainfrom
instructions/sync-safe-outputs-scripts-v0.40.1-5ecd3474928e09fd
Mar 20, 2026
Merged

[instructions] Sync github-agentic-workflows.md with v0.40.1 — add safe-outputs scripts field#21874
pelikhan merged 1 commit intomainfrom
instructions/sync-safe-outputs-scripts-v0.40.1-5ecd3474928e09fd

Conversation

@github-actions
Copy link
Contributor

Instructions Update — Synchronized with v0.40.1

This PR adds documentation for the scripts: key under safe-outputs:, which was present in the JSON Schema (pkg/parser/schemas/main_workflow_schema.json), implemented in Go (pkg/workflow/safe_scripts.go, SafeScriptConfig), and parsed from frontmatter in pkg/workflow/safe_outputs_config.go — but completely absent from the instructions file.

Changes Made

  • Added scripts: entry under the safe-outputs: section, positioned after the existing jobs: entry
  • Includes a minimal YAML example showing description, inputs, and script fields
  • Explains the key difference vs jobs:: scripts run in-process inside the handler loop rather than as separate GitHub Actions jobs
  • Documents the handler body convention: write only the body (compiler generates the outer wrapper and config destructuring)
  • Notes dash-to-underscore normalization for script names

Documentation Commits Reviewed

  • 759d146 feat: Add schema-feature-coverage agentic workflow (no doc changes)
  • No documentation commits since v0.40.1 (2026-02-03); safe-outputs code audit performed directly

Validation

  • Followed prompting best practices (imperative mood, minimal example)
  • Maintained technical tone and brevity
  • Updated only necessary sections
  • Verified accuracy against SafeScriptConfig struct, parseSafeScriptsConfig, and JSON Schema
  • No outdated or redundant content added

Generated by Instructions Janitor ·

  • expires on Mar 21, 2026, 11:58 PM UTC

Document the `scripts:` key under `safe-outputs:`, which was present in
the JSON schema and code (SafeScriptConfig) but missing from the
instructions file. Scripts run inline inside the safe-outputs handler
loop, unlike `jobs:` which create separate GitHub Actions jobs.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions github-actions bot added automation documentation Improvements or additions to documentation instructions labels Mar 19, 2026
@pelikhan pelikhan merged commit 40d2019 into main Mar 20, 2026
@pelikhan pelikhan deleted the instructions/sync-safe-outputs-scripts-v0.40.1-5ecd3474928e09fd branch March 20, 2026 01:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automation documentation Improvements or additions to documentation instructions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant