Skip to content

Commit fe32757

Browse files
committed
Set least-privilege workflow permissions
1 parent bc87c16 commit fe32757

3 files changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/arduino-lint.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
name: Arduino-lint
33

44
on: [push, pull_request]
5+
permissions:
6+
contents: read
7+
58
jobs:
69
lint:
710
runs-on: ubuntu-latest

.github/workflows/arduino_test_runner.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Arduino CI
33

44
on: [push, pull_request]
55

6+
permissions:
7+
contents: read
8+
69
jobs:
710
runTest:
811
runs-on: ubuntu-latest

.github/workflows/jsoncheck.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
- '**.json'
77
pull_request:
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
test:
1114
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)