Skip to content

Comments

Support for Contributions of Agentic Workflows#786

Merged
aaronpowell merged 8 commits intogithub:stagedfrom
brunoborges:agentic-workflows-staged
Feb 24, 2026
Merged

Support for Contributions of Agentic Workflows#786
aaronpowell merged 8 commits intogithub:stagedfrom
brunoborges:agentic-workflows-staged

Conversation

@brunoborges
Copy link
Contributor

Summary

Makes this project welcoming to users who want to contribute their own Agentic Workflows — AI-powered repository automations that run coding agents in GitHub Actions, defined in markdown with natural language instructions.

Changes

  • New workflows/ directory for community-contributed agentic workflows (flat .md files)
  • Build pipeline integration — metadata parsing, README generation, and website data generation for workflows
  • CI validation workflow (validate-agentic-workflows-pr.yml) with two jobs:
    • Block forbidden files — rejects .yml, .yaml, .lock.yml, and .github/ modifications
    • Compile and validate — runs gh aw compile --validate on each workflow .md file
  • Documentation updates — README.md, CONTRIBUTING.md, and AGENTS.md with workflow docs, contributing guidelines, examples, and code review checklists
  • PR template updated with Agentic Workflow as a contribution type
  • validate-readme.yml updated to trigger on workflows/** changes

Type of Contribution

  • New agentic workflow.
  • Other: Infrastructure to support agentic workflow contributions

brunoborges and others added 6 commits February 20, 2026 17:09
Add support for contributing Agentic Workflows — AI-powered repository
automations that run coding agents in GitHub Actions, defined in markdown
with natural language instructions (https://github.github.com/gh-aw).

Changes:
- Create workflows/ directory for community-contributed workflows
- Add workflow metadata parsing (yaml-parser.mjs)
- Add workflow README generation (update-readme.mjs, constants.mjs)
- Add workflow data to website generation (generate-website-data.mjs)
- Update README.md, CONTRIBUTING.md, and AGENTS.md with workflow docs,
  contributing guidelines, and code review checklists

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Adds validate-agentic-workflows.yml that runs on PRs touching workflows/.
Uses gh-aw CLI setup action to install the compiler, then runs
'gh aw compile --validate' on each workflow .md file. Posts a sticky
PR comment with fix instructions on failure.

Also adds workflows/** to validate-readme.yml path triggers so README
tables are regenerated when workflows change.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Prevents contributors from pushing compiled YAML (.yml, .yaml, .lock.yml)
or .github/ directories into the workflows/ directory. Only .md markdown
source files are accepted — compilation happens downstream via gh aw compile.

This is a security measure to prevent malicious GitHub Actions code
from being introduced through contributed agentic workflows.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Workflows are now standalone .md files in workflows/ — no subfolders
or README.md needed. Each file contains both the metadata frontmatter
(name, description, triggers, tags) and the agentic workflow definition
(on, permissions, safe-outputs) in a single file.

Updated all build scripts, CI workflows, docs, and review checklists.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Merges the two separate action workflows (block-workflow-yaml.yml and
validate-agentic-workflows.yml) into a single validate-agentic-workflows-pr.yml
with two jobs: check-forbidden-files runs first, then compile-workflows
runs only if the file check passes.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings February 21, 2026 01:16
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds first-class repository support for community-contributed Agentic Workflows (markdown-defined automations for gh-aw), integrating them into the build/readme generation, website data generation, CI validation, and contribution docs.

Changes:

  • Introduces a new workflows/ resource type (flat .md files) with metadata parsing and README generation.
  • Extends website data/search index generation to include workflows and emits workflows.json.
  • Adds PR-time CI validation for workflow contributions and updates docs/templates to include workflows.

Reviewed changes

Copilot reviewed 11 out of 12 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
workflows/.gitkeep Ensures the new workflows/ directory exists in git.
eng/yaml-parser.mjs Adds parseWorkflowMetadata() for workflow frontmatter parsing.
eng/update-readme.mjs Generates docs/README.workflows.md via a new workflows section builder.
eng/generate-website-data.mjs Generates workflows metadata, adds workflows to search index, and writes workflows.json.
eng/constants.mjs Adds WORKFLOWS_DIR and new README template snippets for workflows.
docs/README.workflows.md New generated documentation page for workflows (currently empty state).
README.md Adds workflows to the main README navigation and repo structure/docs.
CONTRIBUTING.md Adds contribution guidance and an example workflow file format.
AGENTS.md Documents workflow file expectations and adds a review checklist for workflows.
.github/workflows/validate-readme.yml Triggers README validation when workflows/** changes.
.github/workflows/validate-agentic-workflows-pr.yml New CI workflow to block forbidden files and validate workflows with gh aw compile --validate.
.github/pull_request_template.md Adds “agentic workflow” as a contribution type and checklist item.
Comments suppressed due to low confidence (1)

.github/workflows/validate-agentic-workflows-pr.yml:112

  • Same as earlier: commenting on PRs from forks will usually fail under pull_request due to missing write permissions. Please guard this step with a permission check (like validate-readme.yml does) so validation failures still surface without the workflow erroring while trying to comment.
      - name: Comment on PR if compilation failed
        if: failure()
        uses: marocchino/sticky-pull-request-comment@v2
        with:
          header: workflow-validation

aaronpowell
aaronpowell previously approved these changes Feb 24, 2026
@aaronpowell
Copy link
Contributor

@brunoborges your actions files because of the .gitkeep I think 😅

@aaronpowell aaronpowell merged commit ceb9789 into github:staged Feb 24, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants