Skip to content

Commit 593a4a1

Browse files
committed
add explicit permissions to github workflow files
1 parent b9fba48 commit 593a4a1

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/format.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on: [push, pull_request]
55
jobs:
66
format:
77
runs-on: ubuntu-latest
8+
permissions:
9+
contents: read
10+
811
steps:
912
- name: Checkout code
1013
uses: actions/checkout@v6

.github/workflows/run-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ jobs:
1313
runs-on: ${{ matrix.os }}
1414
name: Run Tests (${{ matrix.os }}, ${{ matrix.build_type }})
1515

16+
permissions:
17+
contents: read
18+
1619
steps:
1720
- name: Checkout code
1821
uses: actions/checkout@v6

0 commit comments

Comments
 (0)