Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Pin Auth build actions

Manav Rathie6004ebe485a
diff --git a/.github/docs/apple-signing.md b/.github/docs/apple-signing.md
index 4d6502ba56..834ef46924 100644
--- a/.github/docs/apple-signing.md
+++ b/.github/docs/apple-signing.md
@@ -14,15 +14,13 @@ GitHub macOS builds are made by manually signing with an Apple Developer ID Appl
## What you need
-| Artifact | Scope | Where it lives |
-| ------------------------------------ | ------------- | ---------------------------------------------------------- |
-| Developer ID Application certificate | Team-wide | GitHub secret as a base64 `.p12`, plus its export password |
-| Apple Distribution certificate | Team-wide | GitHub secret as a base64 `.p12`, plus its export password |
-| App Store Connect API key | Team-wide | GitHub secrets for the `.p8`, key ID, and issuer ID |
-| Developer ID provisioning profile | Per macOS app | GitHub secret as a base64 `.provisionprofile` |
-| App ID | Per iOS app | Apple Developer portal |
-| App Store Connect app | Per iOS app | App Store Connect |
-| App Store provisioning profile | Per iOS app | Apple Developer portal |
+| Item | Scope | Notes |
+| -------------------------------------- | -------------- | --------------------------------------------------------------------------------------------- |
+| Developer ID Application certificate | Team-wide | `MAC_OS_CERTIFICATE`, `MAC_OS_CERTIFICATE_PASSWORD` |
+| Apple Distribution certificate | Team-wide | `APPLE_DISTRIBUTION_CERT_BASE64`, `APPLE_DISTRIBUTION_CERT_PASSWORD` |
+| App Store Connect API key | Team-wide | `APP_STORE_CONNECT_API_KEY_BASE64`, `APP_STORE_CONNECT_KEY_ID`, `APP_STORE_CONNECT_ISSUER_ID` |
+| Auth Developer ID provisioning profile | Auth macOS app | `AUTH_MACOS_DEVELOPER_ID_PROVISION_PROFILE_BASE64` |
+| App Store provisioning profile | Per iOS app | App Store profile downloaded by Xcode during the build |
The Developer ID certificate and Apple Distribution certificate are different certificates. Developer ID is for distributing notarized macOS apps outside the Mac App Store. Apple Distribution is for App Store/TestFlight distribution.
@@ -105,11 +103,11 @@ Download the `.p8` immediately; Apple only offers it once. Store:
If the key is lost or compromised, revoke it and create a new one.
-## Per-app macOS setup
+## Auth macOS setup
### Developer ID provisioning profile
-Auth macOS builds also use a Developer ID provisioning profile, stored as `AUTH_MACOS_DEVELOPER_ID_PROVISION_PROFILE_BASE64`.
+Auth macOS builds use a Developer ID provisioning profile because Auth's macOS entitlements include keychain access groups. The profile is stored as `AUTH_MACOS_DEVELOPER_ID_PROVISION_PROFILE_BASE64`.
Create the profile in Apple Developer > Certificates, Identifiers & Profiles > Profiles:
diff --git a/.github/workflows/auth-build.yml b/.github/workflows/auth-build.yml
index 627e952392..e914d1c4ca 100644
--- a/.github/workflows/auth-build.yml
+++ b/.github/workflows/auth-build.yml
@@ -114,12 +114,13 @@ jobs:
df -h /
- name: Setup JDK 17
- uses: actions/setup-java@v1
+ uses: actions/setup-java@v5
with:
- java-version: 17
+ distribution: "temurin"
+ java-version: "17"
- name: Install Flutter ${{ env.FLUTTER_VERSION }}
- uses: subosito/flutter-action@v2
+ uses: subosito/flutter-action@1a449444c387b1966244ae4d4f8c696479add0b2 # v2.23.0
with:
channel: "stable"
flutter-version: ${{ env.FLUTTER_VERSION }}
@@ -257,7 +258,7 @@ jobs:
submodules: recursive
- name: Install Flutter ${{ env.FLUTTER_VERSION }}
- uses: subosito/flutter-action@v2
+ uses: subosito/flutter-action@1a449444c387b1966244ae4d4f8c696479add0b2 # v2.23.0
with:
channel: "stable"
flutter-version: ${{ env.FLUTTER_VERSION }}
@@ -292,13 +293,13 @@ jobs:
shell: pwsh
- name: Sign Windows payload with Trusted Signing
- uses: azure/trusted-signing-action@v0
+ uses: azure/trusted-signing-action@208f8af4bf26cf2af8597424e3cb5582801523ba # v2.0.0
with:
azure-tenant-id: ${{ secrets.AZURE_TENANT_ID }}
azure-client-id: ${{ secrets.AZURE_CLIENT_ID }}
azure-client-secret: ${{ secrets.AZURE_CLIENT_SECRET }}
endpoint: ${{ secrets.AZURE_ENDPOINT }}
- trusted-signing-account-name: ${{ secrets.AZURE_CODE_SIGNING_NAME }}
+ signing-account-name: ${{ secrets.AZURE_CODE_SIGNING_NAME }}
certificate-profile-name: ${{ secrets.AZURE_CERT_PROFILE_NAME }}
files-folder: ${{ github.workspace }}/mobile/apps/auth/build/windows/x64/runner/Release
files-folder-filter: exe,dll
@@ -319,13 +320,13 @@ jobs:
shell: pwsh
- name: Sign Windows installer with Trusted Signing
- uses: azure/trusted-signing-action@v0
+ uses: azure/trusted-signing-action@208f8af4bf26cf2af8597424e3cb5582801523ba # v2.0.0
with:
azure-tenant-id: ${{ secrets.AZURE_TENANT_ID }}
azure-client-id: ${{ secrets.AZURE_CLIENT_ID }}
azure-client-secret: ${{ secrets.AZURE_CLIENT_SECRET }}
endpoint: ${{ secrets.AZURE_ENDPOINT }}
- trusted-signing-account-name: ${{ secrets.AZURE_CODE_SIGNING_NAME }}
+ signing-account-name: ${{ secrets.AZURE_CODE_SIGNING_NAME }}
certificate-profile-name: ${{ secrets.AZURE_CERT_PROFILE_NAME }}
files: ${{ github.workspace }}/mobile/apps/auth/artifacts/${{ env.ARTIFACT_STEM }}-installer.exe
file-digest: SHA256
@@ -400,7 +401,7 @@ jobs:
submodules: recursive
- name: Install Flutter ${{ env.FLUTTER_VERSION }}
- uses: subosito/flutter-action@v2
+ uses: subosito/flutter-action@1a449444c387b1966244ae4d4f8c696479add0b2 # v2.23.0
with:
channel: "stable"
flutter-version: ${{ env.FLUTTER_VERSION }}