From 4f305bd2cf102d1583aedb53a67df8c06cbe5be9 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Mon, 31 Mar 2025 15:22:53 +0100 Subject: [PATCH] ci: set workflow permissions to read-only by default --- .github/workflows/benchmarks.yml | 3 +++ .github/workflows/ci.yml | 3 +++ .github/workflows/metrics.yml | 3 +++ 3 files changed, 9 insertions(+) diff --git a/.github/workflows/benchmarks.yml b/.github/workflows/benchmarks.yml index b2611e15..cf549ebb 100644 --- a/.github/workflows/benchmarks.yml +++ b/.github/workflows/benchmarks.yml @@ -14,6 +14,9 @@ concurrency: group: "${{ github.workflow }}" cancel-in-progress: true +permissions: + contents: read + jobs: build: name: Build diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c9440eb7..eb39de1e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,6 +7,9 @@ concurrency: group: "${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}" cancel-in-progress: true +permissions: + contents: read + jobs: dependency-review: name: Dependency Review diff --git a/.github/workflows/metrics.yml b/.github/workflows/metrics.yml index aa5a4672..cffcf02d 100644 --- a/.github/workflows/metrics.yml +++ b/.github/workflows/metrics.yml @@ -11,6 +11,9 @@ concurrency: group: "${{ github.workflow }}" cancel-in-progress: true +permissions: + contents: read + jobs: build: name: Build