githubnext / githubnext/gh-aw-test
Suggested test: copilot/environment-field
- Dominant language
- Shell
- Stars
- 8
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
## Motivation
Link to the gh-aw PR: github/gh-aw#47874 — Fix dangling `secret_verification_result` reference in conclusion condition when a workflow configures a top-level `environment:`.
When a gh-aw `.md` source file includes a top-level `environment:` field, the compiled lock file's `activation` job skips the `validate-secret` step, meaning `secret_verification_result` is never emitted as an output. Before this fix, `buildConclusionJobCondition` unconditionally referenced that output, causing `actionlint` failures on the generated lock file. No existing E2E test exercises the `environment:` frontmatter field at all.
## Proposed test
- **Workflow file**: `test-copilot-environment-field.md`
- **Trigger**: `workflow_dispatch`
- **Engine**: copilot
- **Safe output**: `create-issue` (simple baseline output to confirm the workflow runs end-to-end)
- **Variant**: standard
## Minimal test prompt sketch
A simple workflow with a top-level `environment: test` (or an existing named environment in the repo) in the frontmatter. The agent creates an issue with a fixed title. The primary assertion is that the compiled lock file passes `actionlint` and the workflow completes successfully — validating that the `environment:` field does not break the conclusion job condition.
## New fixtures or secrets needed
A named GitHub Actions environment (e.g. `test`) must exist in `githubnext/gh-aw-test`. This is a one-time repo setup step.
## Notes
This is a regression test for the `actionlint`-breaking bug fixed in PR #47874. It exercises a frontmatter field currently absent from all 100+ existing test sources. The `environment:` field is orthogonal to the engine, so the copilot variant alone is sufficient initially.
> Generated by [🔍 Suggest New E2E Tests](https://github.com/githubnext/gh-aw-test/actions/runs/30152285891) · sonnet46 · 32.7 AIC · ⌖ 8.96 AIC · ⊞ 6.1K · [◷](https://github.com/search?q=repo%3Agithubnext%2Fgh-aw-test+is%3Aissue+%22gh-aw-workflow-call-id%3A+githubnext%2Fgh-aw-test%2Fsuggest-new-e2e-tests%22&type=issues)
Contributor guide
No contributing guide indexed for this repository
Research direction
Review PR #47874 and the existing E2E test sources, then add test-copilot-environment-field.md with workflow_dispatch, copilot, create-issue, and a top-level environment field. Ensure the named environment exists in githubnext/gh-aw-test, then run the E2E workflow and verify the compiled lock file passes actionlint and the workflow completes successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github-actions, markdown
- Domain
- ci-cd, testing
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 72/100