From 471158cdeea4da32b175ca71298fc164cc8d15ba Mon Sep 17 00:00:00 2001 From: rgarcia <72655+rgarcia@users.noreply.github.com> Date: Fri, 20 Nov 2026 15:17:48 +0000 Subject: [PATCH 1/2] Scope admin app tokens to the permissions each use needs --- .github/workflows/release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4012878..0551cf2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/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.4.0 From b96abe3614a66af8726d871fd05c22406dc04b81 Mon Sep 17 00:00:00 2001 From: rgarcia <72655+rgarcia@users.noreply.github.com> Date: Sun, 22 Nov 2026 19:56:52 +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/release.yml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/actions.lock b/.github/workflows/actions.lock index db2faa9..4c635cd 100644 --- a/.github/workflows/actions.lock +++ b/.github/workflows/actions.lock @@ -9,7 +9,7 @@ workflows: - 'golangci/golangci-lint-action@v9.3.0' '.github/workflows/release.yml': - 'actions/checkout@v4.4.0' - - 'actions/create-github-app-token@v1.12.0' + - 'actions/create-github-app-token@v3.3.0' - 'actions/setup-go@v5.6.0' - 'goreleaser/goreleaser-action@v6.1.0' dependencies: @@ -18,9 +18,9 @@ dependencies: commit: 'sha1-11d5960a326750d5838078e36cf38b85af677262' owner_id: 44036562 repo_id: 197814629 - 'actions/create-github-app-token@v1.12.0': - ref: 'v1.12.0' - 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.6.0': diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0551cf2..18a0a0d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,7 +16,7 @@ jobs: steps: - name: Generate app token id: app-token - uses: actions/create-github-app-token@v1.12.0 + uses: actions/create-github-app-token@v3.3.0 with: app-id: ${{ secrets.ADMIN_APP_ID }} private-key: ${{ secrets.ADMIN_APP_PRIVATE_KEY }}