Set explicit permissions for all workflows

This commit is contained in:
Roland Geider
2026-05-08 15:13:43 +02:00
parent db75c17c32
commit 6831ee73dd
9 changed files with 37 additions and 0 deletions

View File

@@ -16,6 +16,9 @@ on:
workflow_call:
workflow_dispatch:
permissions:
contents: read
jobs:
analyze:
name: Run analyzer

View File

@@ -16,6 +16,10 @@ on:
required: true
DECRYPTKEY_PROPERTIES:
required: true
permissions:
contents: read
jobs:
build_android_apk:
name: APK file

View File

@@ -11,6 +11,10 @@ on:
ref:
required: true
type: string
permissions:
contents: read
jobs:
build_ios:
name: iOS

View File

@@ -21,6 +21,10 @@ on:
secrets:
SSH_DEPLOY_KEY:
required: true
permissions:
contents: read
jobs:
# TODO: note that we currently only build for x64, as arm64 is not supported by

View File

@@ -11,6 +11,10 @@ on:
ref:
required: true
type: string
permissions:
contents: read
jobs:
# TODO: we currently upload the release folder as a ZIP, which works as a
# portable version. For a proper installer (e.g. via Inno Setup or MSIX),

View File

@@ -6,6 +6,9 @@ on:
required: true
type: string
permissions:
contents: write
jobs:
determine_version:
name: Create tag

View File

@@ -14,6 +14,9 @@ on:
workflow_call:
workflow_dispatch:
permissions:
contents: read
jobs:
test:
name: Run tests

View File

@@ -7,6 +7,9 @@ on:
required: true
type: string
permissions:
contents: read
jobs:
ci:
@@ -16,6 +19,8 @@ jobs:
determine_version:
needs: ci
name: Prepare
permissions:
contents: write
uses: ./.github/workflows/bump-version.yml
with:
app_version: ${{ github.event.inputs.version }}
@@ -126,6 +131,8 @@ jobs:
make_gh_release:
name: Make Github Release
runs-on: ubuntu-latest
permissions:
contents: write
needs:
- upload_play_store
- build_linux

View File

@@ -7,6 +7,9 @@ on:
type: boolean
default: false
permissions:
contents: read
jobs:
screenshots_apple:
name: 'iOS'
@@ -131,6 +134,8 @@ jobs:
- screenshots_android
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v6