Repository navigation
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Evals: passedSuite: copilot-smoke Lint: validated (no model execution) - Evidence Run: passed - 1 trial - Evidence
Quality & token summary
|
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟡 Changes recommended
Unknown revisions from early failures are mishandled during evidence merging and PR commenting, obscuring original errors and artifact links or adding misleading reporting failures.
2 open issues
What changed in this PR
Enables the Vally-based GitHub Action to evaluate caller-selected checkouts, including in workflow_run jobs, without requiring HEAD to match GITHUB_SHA. Source provenance and approval remain the caller’s responsibility.
Changes:
- Accept caller-configured events while retaining fork
pull_requestexclusion andpull_request_targetrejection. - Record the actual checkout revision and detect revision changes during preparation.
- Adjust report validation and expand tests and trust documentation for caller-selected checkouts.
| File | Description |
|---|---|
| tests/policy.test.ts | Tests broader event eligibility and checkout SHA validation. |
| tests/action.test.ts | Covers workflow_run, unknown revisions, and checkout changes. |
| src/reporting.ts | Makes expected revisions optional and permits unknown revisions for errors and not-run outcomes. |
| src/policy.ts | Supports caller-configured events and validates checkout SHAs. |
| src/action.ts | Records checkout HEAD, rechecks stability, and adjusts artifact imports. |
| SECURITY.md | Clarifies provenance responsibilities and retained reporting safeguards. |
| README.md | Documents event support, checkout selection, and artifact verification. |
Review effort: Max (adaptive)
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Relates to #26.
A team can now run evals after another GitHub Actions workflow finishes. For example, a team can wait for CI to pass, check out the commit it wants to evaluate, and run the Action against that commit. Previously, the Action rejected this workflow trigger or required the checkout to match the workflow's own commit.
The job summary and saved results show the commit actually checked out. If the commit cannot be determined, the Action keeps the error in the summary instead of posting a potentially misleading PR comment. The README includes a lint-only example.
Verification
corepack pnpm check— passed locally with Node 24.21.0 and pnpm 12.8.1; CI checks also passed.distmatch source. The bundle verification incorepack pnpm checkpassed.Limitations
The workflow owner must verify which run and commit to evaluate; the Action does not verify that a selected commit came from a particular PR. On
workflow_run, results appear in the job summary and artifacts, not in an automatic PR comment. This is narrower than the verification requested in #26.No release was published and no version tag was moved. The existing release automation remains unchanged.