From 997f57850cd3d14ef40c751c72cef23d68d81403 Mon Sep 17 00:00:00 2001 From: fusagiko / takayamaki Date: Sun, 10 May 2026 02:45:54 +0000 Subject: [PATCH] Restrict GITHUB_TOKEN permissions to contents: read The workflow only reads the repository to lint and bundle the OpenAPI specification. Following the principle of least privilege also silences the CodeQL missing-workflow-permissions advisory raised on the initial revision of this PR. --- .github/workflows/openapi.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/openapi.yml b/.github/workflows/openapi.yml index af787665f74..9fa08045720 100644 --- a/.github/workflows/openapi.yml +++ b/.github/workflows/openapi.yml @@ -1,4 +1,8 @@ name: OpenAPI + +permissions: + contents: read + on: merge_group: push: