Skip to content

Commit 6c2ebb8

Browse files
Copilottrask
andcommitted
Add minimum token permissions to all GitHub workflow files
Co-authored-by: trask <[email protected]>
1 parent 71c7a3d commit 6c2ebb8

File tree

12 files changed

+47
-5
lines changed

12 files changed

+47
-5
lines changed

.github/workflows/boost_log.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ on:
1313
- 'instrumentation/boost_log/**'
1414
- '.github/workflows/boost_log.yml'
1515

16+
permissions:
17+
contents: read
18+
1619
jobs:
1720
cmake_linux:
1821
name: CMake Linux

.github/workflows/fluentd.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,11 @@ on:
1313
branches: [main]
1414
paths:
1515
- "exporters/fluentd/**"
16-
- ".github/workflows/fluentd.yml"
17-
16+
- ".github/workflows/fluentd.yml"
17+
18+
permissions:
19+
contents: read
20+
1821
jobs:
1922
cmake_linux:
2023
name: CMake Linux

.github/workflows/geneva_metrics.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ on:
1010
branches: [main]
1111
paths:
1212
- "exporters/geneva/**"
13-
- ".github/workflows/geneva_metrics.yml"
13+
- ".github/workflows/geneva_metrics.yml"
14+
15+
permissions:
16+
contents: read
17+
1418
jobs:
1519
cmake_linux:
1620
name: CMake on Linux

.github/workflows/geneva_trace.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ on:
1515
- "exporters/geneva-trace/**"
1616
- ".github/workflows/geneva_trace.yml"
1717

18+
permissions:
19+
contents: read
20+
1821
jobs:
1922
geneva-trace-nuget-generation:
2023
name: Geneva Trace

.github/workflows/glog.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ on:
1313
- 'instrumentation/glog/**'
1414
- '.github/workflows/glog.yml'
1515

16+
permissions:
17+
contents: read
18+
1619
jobs:
1720
cmake_linux:
1821
name: CMake Linux

.github/workflows/httpd.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ on:
1212
- 'instrumentation/httpd/**'
1313
- '.github/workflows/httpd.yml'
1414

15+
permissions:
16+
contents: read
17+
1518
jobs:
1619
build:
1720
name: Build module

.github/workflows/log4cxx.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ on:
1313
- 'instrumentation/log4cxx/**'
1414
- '.github/workflows/log4cxx.yml'
1515

16+
permissions:
17+
contents: read
18+
1619
jobs:
1720
cmake_linux:
1821
name: CMake Linux

.github/workflows/nginx.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,25 @@ on:
1414
paths:
1515
- 'instrumentation/nginx/**'
1616
- '.github/workflows/nginx.yml'
17+
18+
permissions:
19+
contents: read
20+
1721
jobs:
1822
create-release:
1923
if: startsWith(github.ref, 'refs/tags/nginx')
2024
runs-on: ubuntu-latest
25+
permissions:
26+
contents: write
2127
steps:
2228
- name: Release
2329
uses: softprops/action-gh-release@v2
2430
upload-release-artifacts:
2531
if: startsWith(github.ref, 'refs/tags/nginx')
2632
runs-on: ubuntu-latest
2733
needs: [nginx-build-test, create-release]
34+
permissions:
35+
contents: write
2836
steps:
2937
- name: Create directory
3038
run: |

.github/workflows/prometheus.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ on:
1212
- "exporters/prometheus/**"
1313
- ".github/workflows/prometheus.yml"
1414

15+
permissions:
16+
contents: read
17+
1518
jobs:
1619
prometheus_bazel_linux:
1720
name: Bazel on Linux

.github/workflows/spdlog.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ on:
1313
- 'instrumentation/spdlog/**'
1414
- '.github/workflows/spdlog.yml'
1515

16+
permissions:
17+
contents: read
18+
1619
jobs:
1720
cmake_linux:
1821
name: CMake Linux

0 commit comments

Comments
 (0)