Skip to content

Make test-*.md workflows self-contained by removing @include directives#32

Merged
pelikhan merged 3 commits intomainfrom
copilot/fix-31
Aug 13, 2025
Merged

Make test-*.md workflows self-contained by removing @include directives#32
pelikhan merged 3 commits intomainfrom
copilot/fix-31

Conversation

Copy link
Contributor

Copilot AI commented Aug 13, 2025

This PR removes all @include directive dependencies from the test agentic workflows (test-codex.md, test-gemini.md, and test-claude.md) and makes them fully self-contained.

Changes Made

Removed @include dependencies:

  • @include agentics/shared/include-link.md - AI attribution footer template
  • @include agentics/shared/job-summary.md - GitHub Actions job summary instructions
  • @include agentics/shared/xpia.md - Cross-Prompt Injection Attack security guidelines
  • @include agentics/shared/gh-extra-tools.md - GitHub CLI tools configuration
  • @include agentics/shared/tool-refused.md - Tool access request instructions

Replaced with inline self-contained content:

  • Final Step: Post Your Analysis - Explicit instructions for posting findings as pull request comments instead of job summaries
  • Security Guidelines - XPIA protection guidelines integrated directly into each workflow
  • Tool Access - Instructions for requesting additional GitHub CLI tool access when needed
  • AI Attribution - Attribution footer template with workflow context variables

Benefits

Self-contained workflows - No external file dependencies
Simplified deployment - Workflows can be used independently without shared includes
Clear focus - Workflows now explicitly instruct posting results as PR comments
Maintained functionality - All essential security and attribution content preserved
Successful compilation - All test workflows compile and validate correctly

The workflows now focus on their core purpose: analyzing pull requests and posting comprehensive summaries as comments, while maintaining all necessary security protections and attribution requirements inline.

Fixes #31.

Warning

Firewall rules blocked me from connecting to one or more addresses

I tried to connect to the following addresses, but was blocked by firewall rules:

  • api.contoso.com
    • Triggering command: /tmp/go-build642639418/b256/cli.test -test.testlogfile=/tmp/go-build642639418/b256/testlog.txt -test.paniconexit0 -test.timeout=10m0s -test.v=true (dns block)
    • Triggering command: /tmp/go-build320057617/b256/cli.test -test.testlogfile=/tmp/go-build320057617/b256/testlog.txt -test.paniconexit0 -test.timeout=10m0s -test.v=true (dns block)
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

Copilot AI and others added 2 commits August 13, 2025 11:18
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
…tained

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] make test-*.md workflows self contained Make test-*.md workflows self-contained by removing @include directives Aug 13, 2025
Copilot AI requested a review from pelikhan August 13, 2025 11:30
@pelikhan pelikhan marked this pull request as ready for review August 13, 2025 11:33
> NOTE: Include a footer link like this at the end of each new issue, issue comment or pull request you create. Do this in addition to any other footers you are instructed to include.
### Final Step: Post Your Analysis

```markdown
Copy link
Contributor

Choose a reason for hiding this comment

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

we have lots of copies of this one

@pelikhan pelikhan merged commit d87a6bd into main Aug 13, 2025
6 checks passed
@pelikhan pelikhan deleted the copilot/fix-31 branch August 13, 2025 12:03
pelikhan added a commit that referenced this pull request Aug 25, 2025
* Replace check-team-member shared action with inlined JavaScript script (#22)

* Initial plan

* Replace check-team-member template with inlined JavaScript script

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>

* Fix code formatting (remove trailing whitespace)

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>

* Add check_team_member.cjs to tsconfig.json and create comprehensive tests

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: Peli de Halleux <pelikhan@users.noreply.github.com>

* Refactor compute_text_action.yaml as embedded JavaScript with sanitization (#25)

* Simplify add-reaction feature by removing fallback and try/catch logic (#24)

* Initial plan

* Reimplement add-reaction feature as inlined JavaScript

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>

* Remove "remove" functionality from add-reaction feature, simplify to only support adding reactions

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>

* Remove fallback and try/catch clauses from add-reaction feature

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: Peli de Halleux <pelikhan@users.noreply.github.com>

* Remove compute-text action dependency and template files from workflow system (#29)

* Fix linter issues: Remove unused reactionActionTemplate variable (#30)

* Add output text to test-claude and inline JavaScript instead of shared actions (#32)

* Remove obsolete reaction_action.yaml template file (#34)

* Remove unnecessary content permissions and checkout steps from task and add_reaction jobs (#35)

---------

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
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.

make test-*.md workflows self contained

4 participants