Skip to content

Commit ea4a1b2

Browse files
committed
.github: workflows: build restrict permissions
Restrict default permission of the build workflows. Signed-off-by: Thomas Stranger <[email protected]>
1 parent efd945b commit ea4a1b2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
schedule:
77
- cron: "0 0 * * *"
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
build:
1114
strategy:
@@ -18,6 +21,7 @@ jobs:
1821
uses: actions/checkout@v4
1922
with:
2023
path: example-application
24+
persist-credentials: false
2125

2226
- name: Set up Python
2327
uses: actions/setup-python@v5

0 commit comments

Comments
 (0)