Skip to content

ci: use cascade verify for the dogfood workflow drift check - #227

Merged
joshua-temple merged 1 commit into
mainfrom
ci/dogfood-verify
Jun 18, 2026
Merged

joshua-temple merged 1 commit into
mainfrom
ci/dogfood-verify

Conversation

@joshua-temple

Copy link
Copy Markdown
Collaborator

Problem

The workflow-drift job regenerated workflows to a temp tree and diffed them by hand. This approach required write permissions (the --force flag) and was duplicating logic already in cascade itself.

Fix

Replace the generate-and-diff steps with a single cascade verify call. The verify command is read-only, exits 0 on a clean tree and 1 on drift, and needs only contents: read - making it safe for fork PRs. The required PR gate membership is unchanged.

Verification

  • actionlint passes on the updated workflow
  • go run ./cmd/cascade verify --config .github/manifest.yaml exits 0 on the committed tree
  • git diff shows only the workflow-drift job steps changed

Signed-off-by: Joshua Temple <joshua.temple@stablekernel.com>
@joshua-temple
joshua-temple merged commit 4330712 into main Jun 18, 2026
13 checks passed
@joshua-temple
joshua-temple deleted the ci/dogfood-verify branch June 18, 2026 20:03
@joshua-temple joshua-temple added the ci CI/CD pipeline and workflow changes label Jun 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci CI/CD pipeline and workflow changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant