Skip to content

Commit 13e44d7

Browse files
committed
Resolve a rash of missing-permissions issues called out by CodeQL
Shouldn't need package permissions for a public image Try with top-level permissions block
1 parent 4c4e2f4 commit 13e44d7

File tree

9 files changed

+28
-6
lines changed

9 files changed

+28
-6
lines changed

.github/workflows/add-issues.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
types:
66
- opened
77

8+
permissions: {}
9+
810
jobs:
911
add-to-project:
1012
name: Add issue to project

.github/workflows/clang-format-check.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: Clang-Format Check
22
run-name: "${{ github.actor }} checking code format"
33

4+
permissions:
5+
contents: read
6+
pull-requests: read
7+
48
on:
59
pull_request:
610
branches: [ main ]

.github/workflows/clang-format-fix.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ on:
77
- created
88

99
permissions:
10-
pull-requests: write
11-
contents: write
10+
pull-requests: write
11+
contents: write
1212

1313
jobs:
1414
check:

.github/workflows/clang-tidy-check.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: Clang-Tidy Check
22
'run-name': "${{ github.actor }} running clang-tidy check"
33

4+
permissions:
5+
contents: read
6+
pull-requests: read
7+
48
on:
59
pull_request:
610
branches: [ main ]

.github/workflows/clang-tidy-fix.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ on:
77
- created
88

99
permissions:
10-
pull-requests: write
11-
contents: write
10+
pull-requests: write
11+
contents: write
1212

1313
jobs:
1414
check:

.github/workflows/cmake-build.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
types: [created]
77
workflow_dispatch:
88

9+
permissions:
10+
contents: read
11+
pull-requests: read
12+
913
env:
1014
BUILD_TYPE: Release
1115

.github/workflows/cmake-format-check.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: CMake Format Check
22
run-name: "${{ github.actor }} running CMake format check"
33

4+
permissions:
5+
contents: read
6+
pull-requests: read
7+
48
on:
59
pull_request:
610
branches: [ main ]

.github/workflows/cmake-format-fix.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ on:
77
- created
88

99
permissions:
10-
pull-requests: write
11-
contents: write
10+
pull-requests: write
11+
contents: write
1212

1313
jobs:
1414
check:

.github/workflows/coverage.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ on:
1818
required: false
1919
default: 'ON'
2020

21+
permissions:
22+
contents: read
23+
pull-requests: read
24+
2125
jobs:
2226
detect-coverage-changes:
2327
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)