ci: scope workflow permissions to job level (#4717)

This commit is contained in:
David Lane
2026-02-13 11:37:14 -05:00
committed by GitHub
parent 941f6453c1
commit 2ef66bcc87
12 changed files with 57 additions and 23 deletions

View File

@@ -1,7 +1,6 @@
---
name: CI-FreeBSD
permissions:
contents: read
permissions: {}
on:
workflow_call:
@@ -25,6 +24,7 @@ jobs:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.generate-matrix.outputs.matrix }}
permissions: {}
steps:
- name: Generate Matrix
id: generate-matrix
@@ -66,6 +66,8 @@ jobs:
name: ${{ matrix.cmake_processor }}-${{ matrix.bsd_release }}
runs-on: ubuntu-latest
needs: setup-matrix
permissions:
contents: read
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.setup-matrix.outputs.matrix) }}