Skip to content

Commit 7b55b2f

Browse files
Copilotandreasabel
andcommitted
Add explicit permissions to workflows for security
Co-authored-by: andreasabel <1155218+andreasabel@users.noreply.github.com>
1 parent 3f18b1c commit 7b55b2f

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/example.yml

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

33
on: [push, pull_request]
44

5+
permissions:
6+
contents: read
7+
58
jobs:
69
example:
710
runs-on: ubuntu-latest

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
pull_request:
1010
workflow_dispatch:
1111

12+
permissions:
13+
contents: read
14+
1215
jobs:
1316
test-linux:
1417
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)