Skip to content

Commit cf12718

Browse files
authored
reduced permissions of GitHub actions (#4403)
1 parent 0e788fb commit cf12718

18 files changed

Lines changed: 54 additions & 0 deletions

.github/workflows/CI-cygwin.yml

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

77
on: [push,pull_request]
88

9+
permissions:
10+
contents: read
11+
912
defaults:
1013
run:
1114
shell: cmd

.github/workflows/CI-mingw.yml

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

77
on: [push,pull_request]
88

9+
permissions:
10+
contents: read
11+
912
defaults:
1013
run:
1114
shell: cmd

.github/workflows/CI-unixish-docker.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ name: CI-unixish-docker
44

55
on: [push, pull_request]
66

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

.github/workflows/CI-unixish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ name: CI-unixish
44

55
on: [push, pull_request]
66

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

.github/workflows/CI-windows.yml

Lines changed: 3 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

.github/workflows/asan.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ name: address sanitizer
44

55
on: [push, pull_request]
66

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

.github/workflows/buildman.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Build manual
22

33
on: [push, pull_request]
44

5+
permissions:
6+
contents: read
7+
58
jobs:
69
convert_via_pandoc:
710
runs-on: ubuntu-22.04

.github/workflows/clang-tidy.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ name: clang-tidy
44

55
on: [push, pull_request]
66

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

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: "CodeQL"
22

33
on: [push, pull_request]
44

5+
permissions:
6+
contents: read
7+
58
jobs:
69
analyze:
710
name: Analyze

.github/workflows/coverage.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ name: Coverage
44

55
on: [push, pull_request]
66

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

0 commit comments

Comments
 (0)