ci: add explicit permissions to workflows

This commit is contained in:
Claude
2026-03-28 09:32:48 +00:00
parent 2b920fc47a
commit 8cbd11816e
3 changed files with 10 additions and 0 deletions
+3
View File
@@ -6,6 +6,9 @@ on:
push: push:
branches: [main] branches: [main]
permissions:
contents: read
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.ref }} group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true cancel-in-progress: true
+3
View File
@@ -5,6 +5,9 @@ on:
tags: tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
permissions:
contents: write
jobs: jobs:
create-release: create-release:
runs-on: ubuntu-latest runs-on: ubuntu-latest
+4
View File
@@ -5,6 +5,10 @@ on:
# paths: ["app/src/main/res/**/strings.xml"] // removes filter to allow downloads at any moment. # paths: ["app/src/main/res/**/strings.xml"] // removes filter to allow downloads at any moment.
branches: [ main ] branches: [ main ]
permissions:
contents: write
pull-requests: write
jobs: jobs:
synchronize-with-crowdin: synchronize-with-crowdin:
runs-on: ubuntu-latest runs-on: ubuntu-latest