diff --git a/.github/workflows/analyze.yml b/.github/workflows/analyze.yml index 0a74ff7f3..e66916e9d 100644 --- a/.github/workflows/analyze.yml +++ b/.github/workflows/analyze.yml @@ -16,6 +16,9 @@ on: workflow_call: workflow_dispatch: +permissions: + contents: read + jobs: analyze: name: Run analyzer diff --git a/.github/workflows/build-android.yml b/.github/workflows/build-android.yml index 0ad621313..da249ed40 100644 --- a/.github/workflows/build-android.yml +++ b/.github/workflows/build-android.yml @@ -16,6 +16,10 @@ on: required: true DECRYPTKEY_PROPERTIES: required: true + +permissions: + contents: read + jobs: build_android_apk: name: APK file diff --git a/.github/workflows/build-apple.yml b/.github/workflows/build-apple.yml index 1bb893adf..d95e5783c 100644 --- a/.github/workflows/build-apple.yml +++ b/.github/workflows/build-apple.yml @@ -11,6 +11,10 @@ on: ref: required: true type: string + +permissions: + contents: read + jobs: build_ios: name: iOS diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml index 3958f0067..435efe115 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-linux.yml @@ -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 diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index e4a8995a0..0956ef8df 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -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), diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml index eade216d9..c595dd6d4 100644 --- a/.github/workflows/bump-version.yml +++ b/.github/workflows/bump-version.yml @@ -6,6 +6,9 @@ on: required: true type: string +permissions: + contents: write + jobs: determine_version: name: Create tag diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c1c1235f5..a891b1d99 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,6 +14,9 @@ on: workflow_call: workflow_dispatch: +permissions: + contents: read + jobs: test: name: Run tests diff --git a/.github/workflows/make-release.yml b/.github/workflows/make-release.yml index b77341b2a..5ae21bd3c 100644 --- a/.github/workflows/make-release.yml +++ b/.github/workflows/make-release.yml @@ -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 diff --git a/.github/workflows/screenshots.yml b/.github/workflows/screenshots.yml index ae05cc3d5..d28333fcc 100644 --- a/.github/workflows/screenshots.yml +++ b/.github/workflows/screenshots.yml @@ -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