Skip to content

Commit 284fc6e

Browse files
authored
Merge pull request #316 from cucumber/reduce-actions-permissions
Reduce GitHub Action permissions
2 parents 6a60bb0 + 9bc032a commit 284fc6e

File tree

5 files changed

+18
-2
lines changed

5 files changed

+18
-2
lines changed

.github/workflows/format.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: check format
22

3+
permissions: {}
4+
35
on:
46
pull_request:
57
branches: [ main ]
@@ -18,6 +20,8 @@ jobs:
1820

1921
steps:
2022
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
23+
with:
24+
persist-credentials: false
2125

2226
- name: setup environment
2327
run: |

.github/workflows/linux-build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: Linux build
22

3+
permissions: {}
4+
35
on:
46
pull_request:
57
branches: [ main ]
@@ -28,6 +30,8 @@ jobs:
2830

2931
steps:
3032
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
33+
with:
34+
persist-credentials: false
3135

3236
- name: setup environment
3337
run: |

.github/workflows/qt5.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: build and test with Qt5
22

3+
permissions: {}
4+
35
on:
46
pull_request:
57
branches: [ main ]
@@ -18,6 +20,8 @@ jobs:
1820

1921
steps:
2022
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
23+
with:
24+
persist-credentials: false
2125

2226
- name: setup environment
2327
run: |

.github/workflows/run-all.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: run all
22

3+
permissions: {}
4+
35
on:
46
pull_request:
57
branches: [ main ]
@@ -61,7 +63,7 @@ jobs:
6163
./run-linux.sh
6264
6365
- name: code coverage summary report
64-
uses: irongut/CodeCoverageSummary@v1.3.0
66+
uses: irongut/CodeCoverageSummary@51cc3a756ddcd398d447c044c02cb6aa83fdae95 #v1.3.0
6567
with:
6668
filename: coverage/cobertura.xml
6769
indicators: false

.github/workflows/windows-build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: Windows build
22

3+
permissions: {}
4+
35
on:
46
pull_request:
57
branches: [ main ]
@@ -51,7 +53,7 @@ jobs:
5153

5254
- name: Restore cached boost dependencies
5355
id: cache-boost-deps
54-
uses: actions/cache@v3
56+
uses: actions/cache@6f8efc29b200d32929f49075959781ed54ec270c #v3.5.0
5557
with:
5658
path: |
5759
boost_1_82_0

0 commit comments

Comments
 (0)