From 2736626489b1f572da9b8d239f4588e693108318 Mon Sep 17 00:00:00 2001 From: Peter Matkovski Date: Wed, 8 Jul 2026 13:29:48 +0200 Subject: [PATCH 1/9] CI: add least-privilege permissions to GitHub Actions workflows Add explicit workflow-level permissions blocks to resolve CodeQL actions/missing-workflow-permissions alerts. Scopes are derived from workflow operations (git push, artifact upload, Danger, release lanes). Refs: APPSEC-164 --- .github/workflows/go-video-proto.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/go-video-proto.yml b/.github/workflows/go-video-proto.yml index 6933e39ca..7de7267cb 100644 --- a/.github/workflows/go-video-proto.yml +++ b/.github/workflows/go-video-proto.yml @@ -7,6 +7,10 @@ concurrency: group: ${{ github.ref }}-${{ github.workflow }} cancel-in-progress: true +permissions: + contents: read + pull-requests: read + jobs: protoc: runs-on: ubuntu-latest From 02689a69d3217437f96b6369b65978c7c2437648 Mon Sep 17 00:00:00 2001 From: Peter Matkovski Date: Wed, 8 Jul 2026 13:29:49 +0200 Subject: [PATCH 2/9] CI: add least-privilege permissions to GitHub Actions workflows Add explicit workflow-level permissions blocks to resolve CodeQL actions/missing-workflow-permissions alerts. Scopes are derived from workflow operations (git push, artifact upload, Danger, release lanes). Refs: APPSEC-164 --- .github/workflows/on-tag.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/on-tag.yml b/.github/workflows/on-tag.yml index 26723b625..f58985592 100644 --- a/.github/workflows/on-tag.yml +++ b/.github/workflows/on-tag.yml @@ -13,6 +13,10 @@ concurrency: group: ${{ github.ref }}-${{ github.workflow }} cancel-in-progress: true +permissions: + contents: read + pull-requests: read + jobs: version: runs-on: ubuntu-latest From 20849c55ee9e793310c1a5f6afff0e140ac7ed84 Mon Sep 17 00:00:00 2001 From: Peter Matkovski Date: Wed, 8 Jul 2026 13:29:50 +0200 Subject: [PATCH 3/9] CI: add least-privilege permissions to GitHub Actions workflows Add explicit workflow-level permissions blocks to resolve CodeQL actions/missing-workflow-permissions alerts. Scopes are derived from workflow operations (git push, artifact upload, Danger, release lanes). Refs: APPSEC-164 --- .github/workflows/release.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 54616592c..57ca57c1d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,6 +9,10 @@ concurrency: group: ${{ github.ref }}-${{ github.workflow }} cancel-in-progress: true +permissions: + contents: read + pull-requests: read + jobs: pull-request-on-release: name: Create Release PR From 3ebedd00f5b284dea235f0162d6cfde3b018c396 Mon Sep 17 00:00:00 2001 From: Peter Matkovski Date: Wed, 8 Jul 2026 13:29:51 +0200 Subject: [PATCH 4/9] CI: add least-privilege permissions to GitHub Actions workflows Add explicit workflow-level permissions blocks to resolve CodeQL actions/missing-workflow-permissions alerts. Scopes are derived from workflow operations (git push, artifact upload, Danger, release lanes). Refs: APPSEC-164 --- .github/workflows/typescript-video-proto.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/typescript-video-proto.yml b/.github/workflows/typescript-video-proto.yml index 2d038ef2e..5be250903 100644 --- a/.github/workflows/typescript-video-proto.yml +++ b/.github/workflows/typescript-video-proto.yml @@ -7,6 +7,11 @@ concurrency: group: ${{ github.ref }}-${{ github.workflow }} cancel-in-progress: true +permissions: + contents: read + packages: write + pull-requests: read + jobs: protoc: runs-on: ubuntu-latest From 9cdd3db28fe7827262fd4e2b9e38decd82cd042d Mon Sep 17 00:00:00 2001 From: Peter Matkovski Date: Tue, 14 Jul 2026 13:22:13 +0200 Subject: [PATCH 5/9] Update .github/workflows/on-tag.yml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 🌵 Yun Wang --- .github/workflows/on-tag.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/on-tag.yml b/.github/workflows/on-tag.yml index f58985592..a5a52c2fe 100644 --- a/.github/workflows/on-tag.yml +++ b/.github/workflows/on-tag.yml @@ -14,7 +14,7 @@ concurrency: cancel-in-progress: true permissions: - contents: read + contents: write pull-requests: read jobs: From 0c2eb3e16ca1fcb3cdac2a21ff4420e45b4db868 Mon Sep 17 00:00:00 2001 From: Peter Matkovski Date: Tue, 14 Jul 2026 13:22:21 +0200 Subject: [PATCH 6/9] Update .github/workflows/typescript-video-proto.yml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 🌵 Yun Wang --- .github/workflows/typescript-video-proto.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/typescript-video-proto.yml b/.github/workflows/typescript-video-proto.yml index 5be250903..f2c87747b 100644 --- a/.github/workflows/typescript-video-proto.yml +++ b/.github/workflows/typescript-video-proto.yml @@ -9,7 +9,6 @@ concurrency: permissions: contents: read - packages: write pull-requests: read jobs: From 1b13f1f5245ae70c3c619d93d4502c6a04bb20a3 Mon Sep 17 00:00:00 2001 From: Peter Matkovski Date: Tue, 14 Jul 2026 13:54:08 +0200 Subject: [PATCH 7/9] fix(ci): align workflow token permissions with actual operations --- .github/workflows/go-video-proto.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/go-video-proto.yml b/.github/workflows/go-video-proto.yml index 7de7267cb..e34008846 100644 --- a/.github/workflows/go-video-proto.yml +++ b/.github/workflows/go-video-proto.yml @@ -9,7 +9,6 @@ concurrency: permissions: contents: read - pull-requests: read jobs: protoc: From 523096bd94070b2e529820e109f5d0f60c3ab2bc Mon Sep 17 00:00:00 2001 From: Peter Matkovski Date: Tue, 14 Jul 2026 13:54:09 +0200 Subject: [PATCH 8/9] fix(ci): align workflow token permissions with actual operations --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 57ca57c1d..12dcfe815 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,8 +10,8 @@ concurrency: cancel-in-progress: true permissions: - contents: read - pull-requests: read + contents: write + pull-requests: write jobs: pull-request-on-release: From 880e9df4f2c35932b5f9d48176acbda9dcb498fd Mon Sep 17 00:00:00 2001 From: Peter Matkovski Date: Tue, 14 Jul 2026 13:54:10 +0200 Subject: [PATCH 9/9] fix(ci): align workflow token permissions with actual operations --- .github/workflows/typescript-video-proto.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/typescript-video-proto.yml b/.github/workflows/typescript-video-proto.yml index f2c87747b..ee35c18fe 100644 --- a/.github/workflows/typescript-video-proto.yml +++ b/.github/workflows/typescript-video-proto.yml @@ -7,9 +7,7 @@ concurrency: group: ${{ github.ref }}-${{ github.workflow }} cancel-in-progress: true -permissions: - contents: read - pull-requests: read +permissions: {} jobs: protoc: