Repository navigation
Commit 22480fc
authored
ci(bump): sign bump commits by creating them through the API (#5)
## Summary
Bump commits were pushed with plain `git`, so they landed on `main`
unsigned. We want every commit on `main` to show as verified, and
commits created through the GitHub API are signed by GitHub.
## What Changed
- The bump step now creates its commit with the `createCommitOnBranch`
GraphQL mutation instead of `git commit` and `git push`.
- The mutation sends the new `marketplace.json` contents and uses the
current head of `main` as `expectedHeadOid`.
- If `main` moved during the run, the API refuses the commit, the step
fails with an error, and the next daily run retries.
- Checkout no longer persists credentials. `BUMP_TOKEN` is only passed
to the commit step, with no fallback to `github.token`.
- The README section on the pin describes the new flow.
## Notes for reviewers
- There's no automated test for a workflow change. A manual
`workflow_dispatch` run after a new release is the way to check it, and
the resulting commit should show as verified.
Signed-off-by: igorjs <2278164+igorjs@users.noreply.github.com>1 parent 540f116 commit 22480fc
2 files changed
Lines changed: 23 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
70 | 72 | | |
| 73 | + | |
71 | 74 | | |
72 | 75 | | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
0 commit comments