Skip to content

Commit 538c5c4

Browse files
authored
fixed #485 - addressed zizmor findings in GitHub Actions (#486)
1 parent 2859981 commit 538c5c4

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

.github/workflows/CI-unixish.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: CI-unixish
22

33
on: [push, pull_request]
44

5+
permissions:
6+
contents: read
7+
58
jobs:
69
build:
710

@@ -23,6 +26,8 @@ jobs:
2326

2427
steps:
2528
- uses: actions/checkout@v4
29+
with:
30+
persist-credentials: false
2631

2732
- name: Install missing software on ubuntu
2833
if: matrix.os == 'ubuntu-24.04'

.github/workflows/CI-windows.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ name: CI-windows
66

77
on: [push,pull_request]
88

9+
permissions:
10+
contents: read
11+
912
defaults:
1013
run:
1114
shell: cmd
@@ -23,6 +26,8 @@ jobs:
2326

2427
steps:
2528
- uses: actions/checkout@v4
29+
with:
30+
persist-credentials: false
2631

2732
- name: Setup msbuild.exe
2833
uses: microsoft/setup-msbuild@v2

.github/workflows/clang-tidy.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,18 @@ name: clang-tidy
44

55
on: [push, pull_request]
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
build:
912

1013
runs-on: ubuntu-24.04
1114

1215
steps:
1316
- uses: actions/checkout@v4
17+
with:
18+
persist-credentials: false
1419

1520
- name: Install missing software
1621
run: |

0 commit comments

Comments
 (0)