Skip to content

Commit 1973c7b

Browse files
Merge pull request #3 from GetStream/ci/workflow-least-privilege-permissions
CI: add least-privilege permissions to GitHub Actions workflows
2 parents 0769665 + 80d5005 commit 1973c7b

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎.github/workflows/android.yml‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ on:
66
pull_request:
77
branches: [ main ]
88

9+
permissions:
10+
actions: write
11+
contents: read
12+
pull-requests: read
13+
914
jobs:
1015
build:
1116
runs-on: ubuntu-latest
@@ -18,7 +23,7 @@ jobs:
1823
java-version: 17
1924

2025
- name: Cache Gradle and wrapper
21-
uses: actions/cache@v2
26+
uses: actions/cache@v4
2227
with:
2328
path: |
2429
~/.gradle/caches

0 commit comments

Comments
 (0)