Skip to content

Commit a938edc

Browse files
committed
add read permissions
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
1 parent f811818 commit a938edc

File tree

5 files changed

+16
-1
lines changed

5 files changed

+16
-1
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ on:
2323
pull_request:
2424
branches: [ main ]
2525

26+
permissions:
27+
contents: read
28+
2629
jobs:
2730
assemble:
2831
timeout-minutes: 30

.github/workflows/checks.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ on:
2323
pull_request:
2424
branches: [ main ]
2525

26+
permissions:
27+
contents: read
28+
2629
jobs:
2730
checks:
2831
timeout-minutes: 30

.github/workflows/license-checks.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ on:
2121
paths:
2222
- 'dependency-versions.gradle'
2323

24+
permissions:
25+
contents: read
26+
2427
jobs:
2528
license-checks:
2629
timeout-minutes: 30

.github/workflows/mark-issues-as-stale.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ on:
2121
- cron: "27 3 * * 1-5" # Run at an arbitrary time on weekdays.
2222
workflow_dispatch:
2323

24+
permissions:
25+
contents: read
26+
2427
jobs:
2528
mark-issues-as-stale:
2629
runs-on: ubuntu-latest
@@ -35,4 +38,4 @@ jobs:
3538
DAYS_BEFORE_STALE: 60
3639
DAYS_BEFORE_CLOSE: 60 # Only used for the stale message.
3740
STALE_LABEL: 'Stale'
38-
EXEMPT_LABEL: 'never stale'
41+
EXEMPT_LABEL: 'never stale'

.github/workflows/test-windows.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ on:
2424
types: [opened, synchronize, reopened, labeled, unlabeled]
2525
branches: [ main ]
2626

27+
permissions:
28+
contents: read
29+
2730
jobs:
2831
test-windows:
2932
timeout-minutes: 30

0 commit comments

Comments
 (0)