mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-04 10:32:44 +00:00
fix(ci): grant contents:read so desktop builds can clone the internal fork
The reusable build jobs ran with permissions: {} (fine for upstream's public
repo, which checks out with no token). This fork is internal, so checkout failed
with 'Repository not found'. Grant contents:read on the linux/macos/windows
caller jobs and the reusable build jobs, mirroring the prepare job.
This commit is contained in:
@@ -157,6 +157,8 @@ jobs:
|
|||||||
linux:
|
linux:
|
||||||
name: Linux ${{ matrix.arch }}
|
name: Linux ${{ matrix.arch }}
|
||||||
needs: prepare
|
needs: prepare
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
arch: [amd64, arm64]
|
arch: [amd64, arm64]
|
||||||
@@ -171,6 +173,8 @@ jobs:
|
|||||||
macos:
|
macos:
|
||||||
name: macOS
|
name: macOS
|
||||||
needs: prepare
|
needs: prepare
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
uses: ./.github/workflows/build_desktop_macos.yaml
|
uses: ./.github/workflows/build_desktop_macos.yaml
|
||||||
secrets: inherit # zizmor: ignore[secrets-inherit]
|
secrets: inherit # zizmor: ignore[secrets-inherit]
|
||||||
with:
|
with:
|
||||||
@@ -183,6 +187,8 @@ jobs:
|
|||||||
windows:
|
windows:
|
||||||
name: Windows ${{ matrix.arch }}
|
name: Windows ${{ matrix.arch }}
|
||||||
needs: prepare
|
needs: prepare
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
arch: [x64, arm64]
|
arch: [x64, arm64]
|
||||||
|
|||||||
@@ -76,6 +76,9 @@ jobs:
|
|||||||
# We build on native infrastructure as matrix-seshat fails to cross-compile properly
|
# We build on native infrastructure as matrix-seshat fails to cross-compile properly
|
||||||
# https://github.com/matrix-org/seshat/issues/135
|
# https://github.com/matrix-org/seshat/issues/135
|
||||||
runs-on: ${{ inputs.runs-on || (inputs.arch == 'arm64' && 'ubuntu-22.04-arm' || 'ubuntu-22.04') }}
|
runs-on: ${{ inputs.runs-on || (inputs.arch == 'arm64' && 'ubuntu-22.04-arm' || 'ubuntu-22.04') }}
|
||||||
|
# contents:read so the checkout can clone the fork when it is a private/internal repo
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
env:
|
env:
|
||||||
HAK_DOCKER_IMAGE: ghcr.io/element-hq/element-web/desktop-build-env:${{ case(github.event_name == 'push', inputs.ref || github.ref_name, github.event_name == 'release', 'staging', 'develop') }}
|
HAK_DOCKER_IMAGE: ghcr.io/element-hq/element-web/desktop-build-env:${{ case(github.event_name == 'push', inputs.ref || github.ref_name, github.event_name == 'release', 'staging', 'develop') }}
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
@@ -76,6 +76,9 @@ jobs:
|
|||||||
name: Build macOS Universal
|
name: Build macOS Universal
|
||||||
runs-on: macos-26 # M1
|
runs-on: macos-26 # M1
|
||||||
environment: ${{ inputs.sign && 'Desktop Apple' || '' }}
|
environment: ${{ inputs.sign && 'Desktop Apple' || '' }}
|
||||||
|
# contents:read so the checkout can clone the fork when it is a private/internal repo
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
steps:
|
steps:
|
||||||
- uses: maxim-lobanov/setup-xcode@ed7a3b1fda3918c0306d1b724322adc0b8cc0a90 # v1
|
- uses: maxim-lobanov/setup-xcode@ed7a3b1fda3918c0306d1b724322adc0b8cc0a90 # v1
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -86,6 +86,9 @@ jobs:
|
|||||||
name: Build Windows ${{ inputs.arch }}
|
name: Build Windows ${{ inputs.arch }}
|
||||||
runs-on: windows-2025
|
runs-on: windows-2025
|
||||||
environment: ${{ inputs.sign && 'Desktop eSigner' || '' }}
|
environment: ${{ inputs.sign && 'Desktop eSigner' || '' }}
|
||||||
|
# contents:read so the checkout can clone the fork when it is a private/internal repo
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
env:
|
env:
|
||||||
SIGNTOOL_PATH: "C:/Program Files (x86)/Windows Kits/10/bin/10.0.26100.0/x86/signtool.exe"
|
SIGNTOOL_PATH: "C:/Program Files (x86)/Windows Kits/10/bin/10.0.26100.0/x86/signtool.exe"
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
Reference in New Issue
Block a user