Skip to content

chore: add validation for API response in schema update workflow#29569

Merged
kodster28 merged 1 commit intoproductionfrom
chore/validate-api-schema-commit
Apr 3, 2026
Merged

chore: add validation for API response in schema update workflow#29569
kodster28 merged 1 commit intoproductionfrom
chore/validate-api-schema-commit

Conversation

@mvvmm
Copy link
Copy Markdown
Contributor

@mvvmm mvvmm commented Apr 2, 2026

Summary

Adds validation for the commit SHA received from the GitHub API in the update-api-schemas workflow.

Changes

  • Validates that the API response is a valid 40-character hexadecimal SHA before using it in downstream steps
  • Workflow exits early with a clear error message if the value is unexpected (e.g. rate limit errors returning null)
  • Prevents downstream steps from running with malformed data

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 2, 2026

This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:

Pattern Owners
/.github/ @cloudflare/content-engineering, @kodster28, @mvvmm, @colbywhite, @ahaywood, @MohamedH1998

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 2, 2026

@kodster28 kodster28 merged commit d943641 into production Apr 3, 2026
16 checks passed
@kodster28 kodster28 deleted the chore/validate-api-schema-commit branch April 3, 2026 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants