mirror of
https://github.com/storytold/gridcraft.git
synced 2026-12-02 02:33:55 -06:00
Merged under Skylar's explicit Exec 476 grant after a fresh argon review returned MERGE on both halves, CI green on this head, and CodeRabbit on this head with no open threads. Forwards exactly the fifteen signing secrets the shared nightly signer declares (craft-common-actions #376, pinned at 3dee1822), with no `environment:` anywhere, and relaxes one trust-closure assertion to exactly that allowlist for the signer caller only.
62 lines
2.6 KiB
YAML
62 lines
2.6 KiB
YAML
name: GridCraft release-ref nightly signer
|
|
|
|
# Enabled for supervised manual dispatch on the dedicated nightly-signer branch, which only ever
|
|
# fast-forwards to reviewed main commits (never the stable release branch).
|
|
# A reusable callee does not change context; this must be a real top-level signer-branch dispatch.
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
producer_run_id:
|
|
description: Exact untrusted producer Actions run ID
|
|
required: true
|
|
type: string
|
|
producer_run_attempt:
|
|
description: Exact untrusted producer Actions run attempt
|
|
required: true
|
|
type: string
|
|
|
|
permissions: {}
|
|
|
|
concurrency:
|
|
group: gridcraft-nightly-release
|
|
cancel-in-progress: false
|
|
|
|
jobs:
|
|
release:
|
|
# Actual context guards: official repository, manual dispatch, real nightly-signer branch.
|
|
if: >-
|
|
github.repository == 'storytold/gridcraft' &&
|
|
github.event_name == 'workflow_dispatch' &&
|
|
github.ref == 'refs/heads/nightly-signer' && github.ref_type == 'branch'
|
|
permissions:
|
|
contents: write
|
|
actions: read
|
|
checks: read
|
|
attestations: write
|
|
id-token: write
|
|
uses: storytold/craft-common-actions/.github/workflows/nightly-release.yml@3dee18226ed28134896f69fb8b280fff9247ec7f
|
|
with:
|
|
tooling-revision: 3dee18226ed28134896f69fb8b280fff9247ec7f
|
|
app-name: gridcraft
|
|
producer_run_id: ${{ inputs.producer_run_id }}
|
|
producer_run_attempt: ${{ inputs.producer_run_attempt }}
|
|
# Forward exactly the secrets the signer's sign steps read, named explicitly (never `inherit`),
|
|
# as the stable Release caller does. The callee must declare them; it does since the shared
|
|
# change that added them, and `uses:` is pinned to that revision.
|
|
secrets:
|
|
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
|
|
APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
|
|
KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }}
|
|
APPLE_ID: ${{ secrets.APPLE_ID }}
|
|
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
|
|
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
|
|
WINDOWS_CERTIFICATE: ${{ secrets.WINDOWS_CERTIFICATE }}
|
|
WINDOWS_CERTIFICATE_PASSWORD: ${{ secrets.WINDOWS_CERTIFICATE_PASSWORD }}
|
|
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
|
|
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
|
|
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
|
|
AZURE_SIGNING_ENDPOINT: ${{ secrets.AZURE_SIGNING_ENDPOINT }}
|
|
AZURE_SIGNING_ACCOUNT: ${{ secrets.AZURE_SIGNING_ACCOUNT }}
|
|
AZURE_CERT_PROFILE: ${{ secrets.AZURE_CERT_PROFILE }}
|
|
LINUX_SIGNING_KEY: ${{ secrets.LINUX_SIGNING_KEY }}
|