mirror of
https://github.com/nlohmann/json.git
synced 2026-05-08 07:15:24 +00:00
Fix token permissions warnings (#4550)
* 🚨 fix token permissions warnings * 🚨 fix token permissions warnings * 🚨 fix token permissions warnings
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user