mirror of
https://github.com/wger-project/flutter.git
synced 2026-11-30 01:41:05 +01:00
Set explicit permissions for all workflows
This commit is contained in:
3
.github/workflows/analyze.yml
vendored
3
.github/workflows/analyze.yml
vendored
@@ -16,6 +16,9 @@ on:
|
||||
workflow_call:
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
analyze:
|
||||
name: Run analyzer
|
||||
|
||||
4
.github/workflows/build-android.yml
vendored
4
.github/workflows/build-android.yml
vendored
@@ -16,6 +16,10 @@ on:
|
||||
required: true
|
||||
DECRYPTKEY_PROPERTIES:
|
||||
required: true
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
build_android_apk:
|
||||
name: APK file
|
||||
|
||||
4
.github/workflows/build-apple.yml
vendored
4
.github/workflows/build-apple.yml
vendored
@@ -11,6 +11,10 @@ on:
|
||||
ref:
|
||||
required: true
|
||||
type: string
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
build_ios:
|
||||
name: iOS
|
||||
|
||||
4
.github/workflows/build-linux.yml
vendored
4
.github/workflows/build-linux.yml
vendored
@@ -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
|
||||
|
||||
4
.github/workflows/build-windows.yml
vendored
4
.github/workflows/build-windows.yml
vendored
@@ -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),
|
||||
|
||||
3
.github/workflows/bump-version.yml
vendored
3
.github/workflows/bump-version.yml
vendored
@@ -6,6 +6,9 @@ on:
|
||||
required: true
|
||||
type: string
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
determine_version:
|
||||
name: Create tag
|
||||
|
||||
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@@ -14,6 +14,9 @@ on:
|
||||
workflow_call:
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
test:
|
||||
name: Run tests
|
||||
|
||||
7
.github/workflows/make-release.yml
vendored
7
.github/workflows/make-release.yml
vendored
@@ -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
|
||||
|
||||
5
.github/workflows/screenshots.yml
vendored
5
.github/workflows/screenshots.yml
vendored
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user