From c19e0614f53ac439ff4bb080c77bc0d0bb042e3f Mon Sep 17 00:00:00 2001 From: Melissa Kilby Date: Mon, 6 Oct 2025 07:15:55 -0700 Subject: [PATCH] update: set explicit permissions in GitHub workflows (1/2) (#151) update: set explicit permissions in GitHub workflows (1/2) PR 1: pull_request related workflows only See https://github.com/swift-server/swift-prometheus/issues/150 CC @FranzBusch Signed-off-by: Melissa Kilby Co-authored-by: Franz Busch --- .github/workflows/pull_request.yml | 3 +++ .github/workflows/pull_request_label.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 3b6f3e3..900a3d7 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -4,6 +4,9 @@ on: pull_request: types: [opened, reopened, synchronize] +permissions: + contents: read + jobs: soundness: name: Soundness diff --git a/.github/workflows/pull_request_label.yml b/.github/workflows/pull_request_label.yml index 8fd47c1..1fe3c14 100644 --- a/.github/workflows/pull_request_label.yml +++ b/.github/workflows/pull_request_label.yml @@ -4,6 +4,9 @@ on: pull_request: types: [labeled, unlabeled, opened, reopened, synchronize] +permissions: + contents: read + jobs: semver-label-check: name: Semantic version label check