Skip to content

Commit a9845a4

Browse files
committed
Add empty permissions block in Github Actions configs (#3694)
To restrict all permissions by default (CodeQL warning) (cherry picked from commit 4356b43)
1 parent 5e164bf commit a9845a4

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010
- v*
1111
pull_request:
1212

13+
permissions:
14+
contents: read
15+
1316
env:
1417
postgis_version: 3
1518
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true

.github/workflows/trigger-doc-build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
branches:
99
- docs
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
build:
1316
runs-on: ubuntu-22.04

0 commit comments

Comments
 (0)