You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(swift): optional codesigning and private SPM dependency auth
Two opt-in capabilities for the shared Swift build, both off by default so
existing consumers are unaffected:
- entitlements: when set, ad-hoc codesign the built binary with the given
entitlements plist right after swift build (mirrors local build-swift.sh).
Threaded through swift-pkg-pr.yml and swift-release.yml into swift-build.
- private-deps: when true, mint a short-lived owner-scoped token from the
org App (APP_ID/APP_PRIVATE_KEY) and configure git so SwiftPM can clone
private/internal org dependencies without listing repo names.
Copy file name to clipboardExpand all lines: .github/blocks/swift-build/action.yml
+24-2Lines changed: 24 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,14 @@ inputs:
17
17
description: "Space-separated list of SPM resource bundle names to include (e.g. 'Foo_Foo.bundle')"
18
18
required: false
19
19
default: ""
20
+
entitlements:
21
+
description: "Path to an entitlements plist (relative to repo root). When set, the built binary is ad-hoc codesigned with these entitlements. Needed for daemons that require private entitlements (e.g. to connect to imagent)."
22
+
required: false
23
+
default: ""
24
+
github-token:
25
+
description: "Token with read access to private/internal SPM dependencies. When set, git is configured to use it for github.com clones (so SwiftPM can fetch private deps)."
26
+
required: false
27
+
default: ""
20
28
21
29
outputs:
22
30
binary-path:
@@ -49,13 +57,27 @@ runs:
49
57
- name: Create artifacts directory
50
58
run: mkdir -p artifacts
51
59
shell: bash
60
+
- name: Configure git auth for private/internal SPM dependencies
0 commit comments