Skip to content

Support explicit GitHub Check target SHA#8

Merged
thebiglabasky merged 3 commits into
mainfrom
herve/explicit-github-sha
Jul 16, 2026
Merged

Support explicit GitHub Check target SHA#8
thebiglabasky merged 3 commits into
mainfrom
herve/explicit-github-sha

Conversation

@thebiglabasky

Copy link
Copy Markdown
Collaborator

Summary

  • add a github-sha input that overrides event-derived SHA metadata
  • use the explicit SHA for preflight, test-session repository metadata, and GitHub Check writeback
  • document repository_dispatch and deployment workflows where GITHUB_SHA differs from the checked-out commit
  • cover the override in dry-run, integration, and composite-action harnesses

Why

Dispatch-driven validation can check out and test a commit supplied in the event payload while GitHub exposes the default-branch commit as GITHUB_SHA. Without an override, Checkly reports the result on the wrong revision.

Verification

  • bash -n scripts/*.sh
  • node --check scripts/test-preflight-server.cjs
  • ShellCheck 0.11.0
  • pinned Actionlint container
  • ./scripts/test.sh
  • ./scripts/test-integration.sh

@thebiglabasky
thebiglabasky merged commit 61918e2 into main Jul 16, 2026
4 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.

1 participant