.github: grant workflows only the permissions they use

The repository default token can write; set read and widen per job.
This commit is contained in:
Kristoffer Dalby committed 2026-11-20 19:47:15 +01:00
1 parent b01e8e0980
commit 1dcb57cb8c
8 files changed
+29 -1

No files matched your search

+3
View File
@@ -19,6 +19,9 @@ on:
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
# mike pushes to gh-pages.
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v7.0.1