Skip to content

Commit dda7b4c

Browse files
committed
Add permissions to yml files
1 parent 0727711 commit dda7b4c

7 files changed

Lines changed: 21 additions & 0 deletions

File tree

.github/workflows/_build-examples.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Build Examples
33
on:
44
workflow_call:
55

6+
permissions:
7+
contents: read
8+
69
jobs:
710
build-examples:
811
name: Build Example Apps

.github/workflows/_build-library.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Build Library
33
on:
44
workflow_call:
55

6+
permissions:
7+
contents: read
8+
69
jobs:
710
build-library:
811
name: Build OpenMapView AAR

.github/workflows/_format.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Format Check
33
on:
44
workflow_call:
55

6+
permissions:
7+
contents: read
8+
69
jobs:
710
format:
811
name: Check Code Formatting

.github/workflows/_test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Unit Tests
33
on:
44
workflow_call:
55

6+
permissions:
7+
contents: read
8+
69
jobs:
710
test:
811
name: Run Unit Tests

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
pull_request:
77
branches: [ main, master ]
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
format:
1114
name: Check Formatting

.github/workflows/daily.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
- cron: '45 9 * * *'
77
workflow_dispatch: # Allow manual triggering
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
instrumented-test:
1114
name: Run Instrumentation Tests

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
tags:
66
- "v*.*.*"
77

8+
permissions:
9+
contents: write # Needed to create GitHub releases
10+
811
jobs:
912
format:
1013
name: Check Formatting

0 commit comments

Comments
 (0)