1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-31 10:24:23 +03:00

Fix token permissions warnings (#4550)

* 🚨 fix token permissions warnings

* 🚨 fix token permissions warnings

* 🚨 fix token permissions warnings
This commit is contained in:
Niels Lohmann
2024-12-17 12:55:19 +01:00
committed by GitHub
parent f4910b20ce
commit 861ec9c3c6
11 changed files with 3 additions and 30 deletions

View File

@ -3,8 +3,6 @@ name: "Check amalgamation"
on:
pull_request:
permissions: read-all
jobs:
save:
runs-on: ubuntu-latest

View File

@ -1,9 +1,6 @@
name: CIFuzz
on: [pull_request]
permissions:
contents: read
jobs:
Fuzzing:
runs-on: ubuntu-latest

View File

@ -11,9 +11,6 @@ on:
- cron: '0 19 * * 1'
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: true

View File

@ -5,8 +5,6 @@ on:
types:
- completed
permissions: {}
jobs:
comment:
if: ${{ github.event.workflow_run.conclusion == 'failure' }}

View File

@ -9,9 +9,6 @@
name: 'Dependency Review'
on: [pull_request]
permissions:
contents: read
jobs:
dependency-review:
runs-on: ubuntu-latest

View File

@ -4,8 +4,6 @@ on:
pull_request_target:
types: [opened, synchronize]
permissions: {}
jobs:
label:
permissions:

View File

@ -9,9 +9,6 @@ on:
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: true

View File

@ -10,9 +10,6 @@ on:
- docs/examples/**
workflow_dispatch:
permissions:
contents: write
# we don't want to have concurrent jobs, and we don't want to cancel running jobs to avoid broken publications
concurrency:
group: documentation
@ -20,6 +17,9 @@ concurrency:
jobs:
publish_documentation:
permissions:
contents: write
if: github.repository == 'nlohmann/json'
runs-on: ubuntu-22.04
steps:

View File

@ -14,9 +14,6 @@ on:
push:
branches: ["develop"]
# Declare default permissions as read only.
permissions: read-all
jobs:
analysis:
name: Scorecard analysis

View File

@ -9,9 +9,6 @@ on:
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: true

View File

@ -9,9 +9,6 @@ on:
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: true