Skip to content

test: [ci] Pin integration runs to reviewed commit SHA#1598

Merged
sd-db merged 1 commit into
mainfrom
sd-db/codex/pin-integration-sha
Jul 20, 2026
Merged

test: [ci] Pin integration runs to reviewed commit SHA#1598
sd-db merged 1 commit into
mainfrom
sd-db/codex/pin-integration-sha

Conversation

@sd-db

@sd-db sd-db commented Jul 18, 2026

Copy link
Copy Markdown
Collaborator

Description

Maintainer approval for a fork pull request should authorize the exact commit that was reviewed. Previously, a contributor could push another commit after approval but before the privileged integration workflow checked out the pull request head.

This change captures the pull request head SHA when the integration command is accepted, passes that immutable SHA to both integration workflows, validates it before checkout, and reports the abbreviated SHA in the pull request status comment. Manual git_ref, manual pull request number, scheduled, and minimum-dependency execution paths retain their existing behavior.

Regression tests execute the embedded trigger and parser scripts to verify SHA capture and propagation, both workflow checkout targets, and rejection of malformed SHAs.

Checklist

  • I have run this code in development and it appears to resolve the stated issue
  • This PR includes tests, or tests are not required/relevant for this PR
  • I have updated the CHANGELOG.md and added information about my change to the "dbt-databricks next" section. (Not applicable: CI-only change with no runtime behavior impact.)
  • [Optional] I have run /dbt-databricks-pr-ready (AI agent skill in .claude/skills/) and addressed its merge-readiness feedback

Verification:

  • hatch run pytest tests/unit/test_integration_workflow_dispatch.py -v (5 passed)
  • Full unit suite (1284 passed, 6 skipped)
  • hatch run pre-commit run --all-files
  • git diff --check

- Bind comment-triggered dispatches to the PR head commit\n- Reject malformed commit inputs before checkout
@sd-db
sd-db requested a review from jprakash-db as a code owner July 18, 2026 21:56
@sd-db sd-db changed the title [ci] Pin integration runs to reviewed commit SHA test: [ci] Pin integration runs to reviewed commit SHA Jul 18, 2026
@github-actions

Copy link
Copy Markdown

Coverage report

This PR does not seem to contain any modification to coverable code.

@sd-db
sd-db merged commit 843ad4e into main Jul 20, 2026
9 of 10 checks passed
@sd-db
sd-db deleted the sd-db/codex/pin-integration-sha branch July 20, 2026 08:38
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