ci: sign bot commits in OpenAPI spec sync workflow - #2733
Merged
Conversation
The repo's 'Require Signed Commits' ruleset rejects the unsigned CLI commit peter-evans/create-pull-request makes, so the scheduled spec refresh failed on its first run (29986258074) and the checked-in specs drifted from semgrep.dev. sign-commits: true makes the action commit via the GraphQL API, which GitHub auto-signs. Fixes APPEX-1455
gaprl
enabled auto-merge (squash)
July 23, 2026 19:08
abhijna
self-requested a review
July 23, 2026 19:58
abhijna
approved these changes
Jul 23, 2026
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.
Why
The scheduled OpenAPI spec refresh (update-openapi-specs.yml, added in #2706) failed on its first run (29986258074): it fetched the specs, passed
mintlify validate, and committed the diff, but the push was rejected —The repo's Require Signed Commits ruleset (targets all branches, no bypass actors) rejects the commit
peter-evans/create-pull-requestmakes via the git CLI, which is unsigned regardless of token. Until the sync can push, the checked-in specs drift from production — e.g.includeFirstDetectedAtonListIssuesRequestis live at https://semgrep.dev/api/v2/openapi.yaml but missing from the rendered API reference.What
Add
sign-commits: trueto thecreate-pull-requeststep (supported at the pinned v8.1.1). The action then creates the commit through GitHub's GraphQL API, which GitHub auto-signs (verified asgithub-actions[bot], or the bot identity ifDOCS_BOT_TOKENis set), satisfying the ruleset.Verification
actionlintpasses on the modified workflow.workflow_dispatch; it should open thechore/update-openapi-specssync PR, whose diff should includeincludeFirstDetectedAt.Fixes APPEX-1455