ci: restrict default GITHUB_TOKEN permissions to contents: read

None of these workflows write through GITHUB_TOKEN: artifact upload,
Firebase, S3, Play Store, gh-pages and the Appium dispatch all use their
own credentials. Reusable workflows they call inherit the same cap.
This commit is contained in:
Satoshi Qazi Muhammed committed 2026-10-02 21:16:56 +04:00
1 parent 43147deba6
commit 77314c8901
7 files changed
+21

No files matched your search

@@ -34,6 +34,9 @@ env:
ALLURE_ENDPOINT: https://pezkuwi.testops.cloud/
ALLURE_PROJECT_ID: 103
permissions:
contents: read
jobs:
trigger-tests:
runs-on: ubuntu-latest
+3
View File
@@ -6,6 +6,9 @@ on:
schedule:
- cron: '0 */8 * * *'
permissions:
contents: read
jobs:
build-app:
uses: pezkuwichain/pezkuwi-wallet-android/.github/workflows/android_build.yml@main
+3
View File
@@ -29,6 +29,9 @@ env:
DEBUG_GOOGLE_OAUTH_ID: ${{ secrets.DEBUG_GOOGLE_OAUTH_ID }}
RELEASE_GOOGLE_OAUTH_ID: ${{ secrets.RELEASE_GOOGLE_OAUTH_ID }}
permissions:
contents: read
jobs:
ktlint:
name: Kotlin Lint
@@ -35,6 +35,9 @@ on:
default: '0.2'
type: string
permissions:
contents: read
jobs:
build:
uses: pezkuwichain/pezkuwi-wallet-android/.github/workflows/android_build.yml@main
@@ -20,6 +20,9 @@ on:
required: true
default: main
permissions:
contents: read
jobs:
build:
uses: pezkuwichain/pezkuwi-wallet-android/.github/workflows/android_build.yml@main
+3
View File
@@ -11,6 +11,9 @@ on:
type: string
permissions:
contents: read
jobs:
test:
uses: pezkuwichain/pezkuwi-wallet-android/.github/workflows/android_build.yml@main
+3
View File
@@ -5,6 +5,9 @@ on:
branches: [main]
workflow_dispatch:
permissions:
contents: read
jobs:
build:
uses: pezkuwichain/pezkuwi-wallet-android/.github/workflows/android_build.yml@main