Skip to content

Commit 861ec9c

Browse files
authored
Fix token permissions warnings (#4550)
* 🚨 fix token permissions warnings * 🚨 fix token permissions warnings * 🚨 fix token permissions warnings
1 parent f4910b2 commit 861ec9c

11 files changed

+3
-30
lines changed

.github/workflows/check_amalgamation.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ name: "Check amalgamation"
33
on:
44
pull_request:
55

6-
permissions: read-all
7-
86
jobs:
97
save:
108
runs-on: ubuntu-latest

.github/workflows/cifuzz.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
name: CIFuzz
22
on: [pull_request]
33

4-
permissions:
5-
contents: read
6-
74
jobs:
85
Fuzzing:
96
runs-on: ubuntu-latest

.github/workflows/codeql-analysis.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ on:
1111
- cron: '0 19 * * 1'
1212
workflow_dispatch:
1313

14-
permissions:
15-
contents: read
16-
1714
concurrency:
1815
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
1916
cancel-in-progress: true

.github/workflows/comment_check_amalgamation.yml

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

8-
permissions: {}
9-
108
jobs:
119
comment:
1210
if: ${{ github.event.workflow_run.conclusion == 'failure' }}

.github/workflows/dependency-review.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99
name: 'Dependency Review'
1010
on: [pull_request]
1111

12-
permissions:
13-
contents: read
14-
1512
jobs:
1613
dependency-review:
1714
runs-on: ubuntu-latest

.github/workflows/labeler.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ on:
44
pull_request_target:
55
types: [opened, synchronize]
66

7-
permissions: {}
8-
97
jobs:
108
label:
119
permissions:

.github/workflows/macos.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ on:
99
pull_request:
1010
workflow_dispatch:
1111

12-
permissions:
13-
contents: read
14-
1512
concurrency:
1613
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
1714
cancel-in-progress: true

.github/workflows/publish_documentation.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ on:
1010
- docs/examples/**
1111
workflow_dispatch:
1212

13-
permissions:
14-
contents: write
15-
1613
# we don't want to have concurrent jobs, and we don't want to cancel running jobs to avoid broken publications
1714
concurrency:
1815
group: documentation
1916
cancel-in-progress: false
2017

2118
jobs:
2219
publish_documentation:
20+
permissions:
21+
contents: write
22+
2323
if: github.repository == 'nlohmann/json'
2424
runs-on: ubuntu-22.04
2525
steps:

.github/workflows/scorecards.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ on:
1414
push:
1515
branches: ["develop"]
1616

17-
# Declare default permissions as read only.
18-
permissions: read-all
19-
2017
jobs:
2118
analysis:
2219
name: Scorecard analysis

.github/workflows/ubuntu.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ on:
99
pull_request:
1010
workflow_dispatch:
1111

12-
permissions:
13-
contents: read
14-
1512
concurrency:
1613
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
1714
cancel-in-progress: true

0 commit comments

Comments
 (0)