Skip to content

Commit b41241b

Browse files
committed
Lower permissions of the workflows.
1 parent 2c5a1fc commit b41241b

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,16 @@ on:
88
paths:
99
- '.github/workflows/codeql-analysis.yml'
1010

11-
name: codeql analysis
11+
name: Codeql analysis
12+
permissions:
13+
contents: read
1214
jobs:
1315
scan_linux:
1416
name: Linux Q${{matrix.quantum}}-x64 hdri=${{matrix.hdri}} (${{matrix.modules}})
1517
runs-on: ubuntu-24.04
1618

1719
permissions:
20+
contents: read
1821
security-events: write
1922

2023
strategy:

.github/workflows/daily.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ on:
1313
paths:
1414
- '.github/workflows/daily.yml'
1515

16-
name: daily
16+
name: Daily
17+
permissions:
18+
contents: read
1719
jobs:
1820
change_log:
1921
name: 'Create ChangeLog.md'

.github/workflows/main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ on:
88
branches:
99
- main
1010

11-
name: main
11+
name: Main
12+
permissions:
13+
contents: read
1214
jobs:
1315
build_linux:
1416
name: Build Linux

.github/workflows/windows-release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ on:
1515
paths:
1616
- '.github/workflows/windows-release.yml'
1717

18-
name: windows release
18+
name: Windows release
19+
permissions:
20+
contents: read
1921
jobs:
2022
change_log:
2123
name: Create ChangeLog.md

0 commit comments

Comments
 (0)