From 01b11b1f3a3aff3935286b8ebbbcb06782824ddc Mon Sep 17 00:00:00 2001 From: rgarcia <72655+rgarcia@users.noreply.github.com> Date: Fri, 20 Nov 2026 15:17:33 +0000 Subject: [PATCH 1/2] Scope admin app tokens to the permissions each use needs --- .github/workflows/publish-release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 5088ad0..c30a4cd 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -22,6 +22,7 @@ jobs: private-key: ${{ secrets.ADMIN_APP_PRIVATE_KEY }} owner: kernel repositories: homebrew-tap + permission-contents: write - name: Checkout uses: actions/checkout@v4 with: From 7c5916727ce4ab4f524bc2550932b50727a19605 Mon Sep 17 00:00:00 2001 From: rgarcia <72655+rgarcia@users.noreply.github.com> Date: Sun, 22 Nov 2026 19:56:41 +0000 Subject: [PATCH 2/2] Move create-github-app-token to v3.3.0 so permission inputs take effect --- .github/workflows/actions.lock | 8 ++++---- .github/workflows/publish-release.yml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/actions.lock b/.github/workflows/actions.lock index bd31cf6..2392484 100644 --- a/.github/workflows/actions.lock +++ b/.github/workflows/actions.lock @@ -8,7 +8,7 @@ workflows: - 'actions/setup-go@v5' '.github/workflows/publish-release.yml': - 'actions/checkout@v4' - - 'actions/create-github-app-token@v1' + - 'actions/create-github-app-token@v3.3.0' - 'actions/setup-go@v5' - 'goreleaser/goreleaser-action@v6.1.0' '.github/workflows/release-doctor.yml': @@ -21,9 +21,9 @@ dependencies: commit: 'sha1-11d5960a326750d5838078e36cf38b85af677262' owner_id: 44036562 repo_id: 197814629 - 'actions/create-github-app-token@v1': - ref: 'v1' - commit: 'sha1-d72941d797fd3113feb6b93fd0dec494b13a2547' + 'actions/create-github-app-token@v3.3.0': + ref: 'v3.3.0' + commit: 'sha1-64ab729a6294000f5aa4a4bc0b73d1f32bc45510' owner_id: 44036562 repo_id: 642580244 'actions/setup-go@v5': diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index c30a4cd..9959cb2 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -16,7 +16,7 @@ jobs: steps: - name: Generate app token id: app-token - uses: actions/create-github-app-token@v1 + uses: actions/create-github-app-token@v3.3.0 with: app-id: ${{ secrets.ADMIN_APP_ID }} private-key: ${{ secrets.ADMIN_APP_PRIVATE_KEY }}