From 6d1b7d5bcdefee737a8e0f953b068367768357ea Mon Sep 17 00:00:00 2001 From: Haoyu Wang Date: Mon, 9 Nov 2026 21:10:38 +0000 Subject: [PATCH 1/3] ci: migrate off pull_request_target and fix zizmor findings - Harden assign-prs: main branch only, no default token permissions. - Set persist-credentials: false on actions/checkout. - Declare read-only permissions where none were set. --- .github/workflows/assign-prs.yml | 5 ++++- .github/workflows/header-check.yml | 5 +++++ .github/workflows/markdown-checks.yml | 5 +++++ .github/workflows/pr-title-linter.yml | 5 ++++- .github/workflows/submodule-pin-check.yml | 1 + .github/workflows/sync-labels.yaml | 2 ++ 6 files changed, 21 insertions(+), 2 deletions(-) diff --git a/.github/workflows/assign-prs.yml b/.github/workflows/assign-prs.yml index d71193f..30430b1 100644 --- a/.github/workflows/assign-prs.yml +++ b/.github/workflows/assign-prs.yml @@ -15,8 +15,11 @@ name: PR assignment on: - pull_request_target: + pull_request_target: # zizmor: ignore[dangerous-triggers] - needs write token on fork PRs; never checks out or runs PR code types: [opened, edited, reopened] + branches: [main] + +permissions: {} jobs: auto-assign: diff --git a/.github/workflows/header-check.yml b/.github/workflows/header-check.yml index e691065..8c84023 100644 --- a/.github/workflows/header-check.yml +++ b/.github/workflows/header-check.yml @@ -18,6 +18,9 @@ on: pull_request: branches: [ main ] +permissions: + contents: read + jobs: license-check: name: 'License Header Check' @@ -25,6 +28,8 @@ jobs: steps: - name: 'Checkout Repository' uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 + with: + persist-credentials: false - name: Check License Header uses: apache/skywalking-eyes/header@a196742f472feaffafea537ce5a2a4c3c53a8de4 # main diff --git a/.github/workflows/markdown-checks.yml b/.github/workflows/markdown-checks.yml index 8ac735e..d8fab26 100644 --- a/.github/workflows/markdown-checks.yml +++ b/.github/workflows/markdown-checks.yml @@ -18,6 +18,9 @@ on: pull_request: branches: [ main ] +permissions: + contents: read + jobs: link-check: name: Run link check @@ -25,6 +28,8 @@ jobs: steps: - name: Check out code uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 + with: + persist-credentials: false - name: Link Checker uses: lycheeverse/lychee-action@e7477775783ea5526144ba13e8db5eec57747ce8 # v2.9.0 diff --git a/.github/workflows/pr-title-linter.yml b/.github/workflows/pr-title-linter.yml index e3f3e41..30e4a46 100644 --- a/.github/workflows/pr-title-linter.yml +++ b/.github/workflows/pr-title-linter.yml @@ -17,6 +17,9 @@ name: 'Lint PR Title' on: pull_request: +permissions: + pull-requests: read + jobs: main: name: Validate PR title @@ -24,4 +27,4 @@ jobs: steps: - uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/submodule-pin-check.yml b/.github/workflows/submodule-pin-check.yml index 95d7701..d6361ad 100644 --- a/.github/workflows/submodule-pin-check.yml +++ b/.github/workflows/submodule-pin-check.yml @@ -29,6 +29,7 @@ jobs: - name: Check out code uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: + persist-credentials: false submodules: true - name: Fetch submodule tags diff --git a/.github/workflows/sync-labels.yaml b/.github/workflows/sync-labels.yaml index 0c78166..8fdab04 100644 --- a/.github/workflows/sync-labels.yaml +++ b/.github/workflows/sync-labels.yaml @@ -30,6 +30,8 @@ jobs: pull-requests: 'write' steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - uses: micnncim/action-label-syncer@3abd5ab72fda571e69fffd97bd4e0033dd5f495c # v1.3.0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 4bd4d51ef3425f809c5ba2382f42df296bfac8d9 Mon Sep 17 00:00:00 2001 From: Haoyu Wang Date: Mon, 9 Nov 2026 21:14:19 +0000 Subject: [PATCH 2/3] chore: update repo links after move to GoogleCloudPlatform Point links at the GoogleCloudPlatform repos that the old gemini-cli-extensions URLs now redirect to. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3f3b1df..b870a6f 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ Extensions and plugins are the primary way to inject specialized capabilities in Gemini CLI extensions are installed directly from their remote GitHub repositories. ```bash -gemini extensions install https://github.com/gemini-cli-extensions/ +gemini extensions install https://github.com/GoogleCloudPlatform/ ``` From 6423fa20f785c3191583f58796e61e5f6ab75f3c Mon Sep 17 00:00:00 2001 From: Haoyu Wang Date: Mon, 9 Nov 2026 21:34:57 +0000 Subject: [PATCH 3/3] ci: use exact version comments for pinned actions Fixes zizmor ref-version-mismatch findings. --- .github/workflows/pr-title-linter.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-title-linter.yml b/.github/workflows/pr-title-linter.yml index 30e4a46..060a674 100644 --- a/.github/workflows/pr-title-linter.yml +++ b/.github/workflows/pr-title-linter.yml @@ -25,6 +25,6 @@ jobs: name: Validate PR title runs-on: ubuntu-latest steps: - - uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6 + - uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6.1.1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}