Skip to content

Build PRs without signing secrets unsigned, and once per PR - #527

Merged
jtklein merged 1 commit into
AntonelliLab:masterfrom
jtklein-agents:fix-build-workflow-dependabot
Nov 26, 2026
Merged

jtklein merged 1 commit into
AntonelliLab:masterfrom
jtklein-agents:fix-build-workflow-dependabot

Conversation

@jtklein-agents

Copy link
Copy Markdown
Contributor

Summary

Dependabot PRs (#519 and the tmp-0.2.7 bump) fail the macOS build. Their branches live in this repo, so the macOS build had to sign them. But GitHub gives no Actions secrets to Dependabot runs, so there is no certificate to sign with.

A PR now has to sign only when the certificate secret is actually present:

 macOS "Package and publish"
-  must sign if: v* tag OR same-repo PR
+  must sign if: v* tag OR (PR AND mac_certs secret present)
+  no secret on a PR (fork, Dependabot) → build unsigned + warning, as before #526

Each PR also ran the build twice: once for push, which matched every branch, and once for pull_request. Branches are now built only through their PR:

 on:
-  push:
+  push:
+    branches: [master]
+    tags: ['v*']
   pull_request:
     branches: [master]

Evidence

  • Before: Bump yaml from 1.10.2 to 1.10.3 #519's pull_request build fails on macOS: skipped macOS application code signing reason=Identity name is specified, but no valid identity ... 0 identities found (run). The same commit has a second, green push build.
    After: I didn't run this change in CI. The workflow file parses as YAML, and bash -n passes on the extracted step script. This PR comes from a fork, so its macOS build should take the no-secret path: unsigned, with the warning.

Merge Danger

Door: two-way

Revert the commit to get the old triggers and rules back.

Blast Radius: CI

  • If mac_certs is ever removed, PRs from this repo build unsigned with only a warning. Tag builds still fail without it.
  • Branches without a PR no longer get a build run.

🤖 Generated with Claude Code

Dependabot runs get no Actions secrets, so forcing macOS signing on
every same-repo PR failed them. Require signing on a PR only when the
certificate secret is present; tags always require it. Limit push
builds to master and v* tags so a PR branch is not built twice.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jtklein
jtklein merged commit 3227d4f into AntonelliLab:master Nov 26, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants