Skip to content

Commit c485bb3

Browse files
authored
Give all workflows write permissions (#1201)
1 parent a5a901d commit c485bb3

11 files changed

+23
-0
lines changed

.github/workflows/build-report.yml

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
schedule:
66
- cron: "0 13 * * *" # 1pm UTC = 5am PST / 6am PDT, 6 hours after testapps run
77

8+
permissions: write-all
9+
810
env:
911
GITHUB_TOKEN: ${{ github.token }}
1012
numDays: 7

.github/workflows/build_android.yml

+2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ on:
3535
required: false
3636
type: string
3737

38+
permissions: write-all
39+
3840
jobs:
3941
build_android:
4042
name: build-android-unity${{ inputs.unity_version }}-CPP${{ inputs.firebase_cpp_sdk_version }}

.github/workflows/build_ios.yml

+2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ on:
3535
required: false
3636
type: string
3737

38+
permissions: write-all
39+
3840
jobs:
3941
build_ios:
4042
name: build-ios-unity${{ inputs.unity_version }}-CPP${{ inputs.firebase_cpp_sdk_version }}

.github/workflows/build_linux.yml

+2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ on:
3535
required: false
3636
type: string
3737

38+
permissions: write-all
39+
3840
jobs:
3941
build_desktop:
4042
name: build-linux-unity${{inputs.unity_version}}-CPP${{ inputs.firebase_cpp_sdk_version }}

.github/workflows/build_macos.yml

+2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ on:
3535
required: false
3636
type: string
3737

38+
permissions: write-all
39+
3840
jobs:
3941
build_desktop:
4042
name: build-macOS-unity${{ inputs.unity_version}}-CPP${{ inputs.firebase_cpp_sdk_version }}

.github/workflows/build_starter.yml

+2
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ on:
5555
default: '1'
5656
required: true
5757

58+
permissions: write-all
59+
5860
env:
5961
pythonVersion: '3.8'
6062

.github/workflows/build_tvos.yml

+2
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ on:
5656
required: true
5757
type: string
5858

59+
permissions: write-all
60+
5961
jobs:
6062
build_tvos:
6163
name: build-tvos-unity${{ inputs.unity_version }}-CPP${{ inputs.firebase_cpp_sdk_version }}

.github/workflows/build_windows.yml

+2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ on:
3535
required: false
3636
type: string
3737

38+
permissions: write-all
39+
3840
jobs:
3941
build_desktop:
4042
name: build-windows-unity${{inputs.unity_version}}-CPP${{ inputs.firebase_cpp_sdk_version }}

.github/workflows/generate_swig.yml

+2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ on:
2626
required: false
2727
type: string
2828

29+
permissions: write-all
30+
2931
jobs:
3032
generate_swig:
3133
name: generate-swig-unity${{inputs.unity_version}}-CPP${{ inputs.firebase_cpp_sdk_version }}

.github/workflows/integration_tests.yml

+2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ on:
3131
test_pull_request:
3232
description: 'Optional: Pull request # to build and test? (With optional commit hash, separated by a colon. Specify the FULL hash.)'
3333

34+
permissions: write-all
35+
3436
env:
3537
triggerLabelPrefix: "tests-requested: "
3638
triggerLabelFull: "tests-requested: full"

.github/workflows/retry-test-failures.yml

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
description: 'Run ID to check and retry'
77
default: ''
88
required: true
9+
10+
permissions: write-all
11+
912
jobs:
1013
check_results_and_retry_if_needed:
1114
name: check-results-and-retry-if-needed

0 commit comments

Comments
 (0)