Skip to content

Commit 63eb07e

Browse files
Add explicit permissions to example workflows for security
Co-authored-by: thoughtparametersllc <194255310+thoughtparametersllc@users.noreply.github.com>
1 parent 3b350d4 commit 63eb07e

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/example-advanced.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99
jobs:
1010
test:
1111
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
1214
strategy:
1315
matrix:
1416
python-version: ['3.9', '3.10', '3.11', '3.12']

.github/workflows/example-basic.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99
jobs:
1010
test:
1111
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
1214

1315
steps:
1416
- name: Checkout code

0 commit comments

Comments
 (0)