Commit 0d73885
fix(ci): skip cosign signing on Dependabot PRs (#44)
* fix(ci): skip cosign signing on Dependabot PRs
Dependabot-triggered pull_request runs get no access to Actions secrets,
so secrets.SIGNING_SECRET is empty and the blue-build cosign signing step
fails the whole build_push job (~10s, before any real build). Merging then
runs the same workflow on push to main, where the secret is available, so
it succeeds -- which is why these PRs fail on cosign yet pass after merge.
Only pass the cosign key on non-PR events. PR builds still validate that
the image builds; the real sign+push happens on push to main. Also document
the behavior in the README maintainer notes.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* fix(ci): build-only on PRs instead of trying to sign
The previous commit was the wrong fix. Emptying the cosign key on PRs did
not help: the BlueBuild action defaults to push=true and always signs what
it pushes, so on a pull_request it still attempts to push a pr-<n> image and
cosign-sign it, failing early (~10s) when SIGNING_SECRET is unavailable.
This is why *every* PR (not just Dependabot) failed on cosign while the same
commit succeeded on push to main.
Set push=false on pull_request so PRs are build-only -- the image is still
built and validated, just not published or signed. Restore the plain
SIGNING_SECRET key (used only on push/schedule now) and update the README
maintainer note to match.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent 7646f81 commit 0d73885
2 files changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
46 | 57 | | |
47 | 58 | | |
48 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
105 | 106 | | |
106 | 107 | | |
107 | 108 | | |
| |||
0 commit comments