From 98dbfb792fd9e398bf3511125af9b116e05d0c5e Mon Sep 17 00:00:00 2001 From: rgarcia <72655+rgarcia@users.noreply.github.com> Date: Sun, 22 Nov 2026 19:57:25 +0000 Subject: [PATCH 1/2] Move create-github-app-token to v3.3.0 so permission inputs take effect --- .github/workflows/actions.lock | 10 +++++----- .github/workflows/deploy-staging.yml | 2 +- .github/workflows/stlc-generate.yml | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/actions.lock b/.github/workflows/actions.lock index 0fbea56e2..3afc96c8b 100644 --- a/.github/workflows/actions.lock +++ b/.github/workflows/actions.lock @@ -10,7 +10,7 @@ workflows: - 'aws-actions/configure-aws-credentials@v4.3.1' - 'docker/setup-buildx-action@v3.12.0' '.github/workflows/deploy-staging.yml': - - 'actions/create-github-app-token@v1.12.0' + - 'actions/create-github-app-token@v3.3.0' '.github/workflows/deploy.yml': - 'actions/checkout@v4.4.0' - 'actions/setup-go@v6.5.0' @@ -26,7 +26,7 @@ workflows: '.github/workflows/semgrep.yml': [] '.github/workflows/stlc-generate.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' - 'actions/setup-node@v4.4.0' - 'pnpm/action-setup@v4.3.0' @@ -43,9 +43,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/deploy-staging.yml b/.github/workflows/deploy-staging.yml index b0f4be651..c3c4b8ef8 100644 --- a/.github/workflows/deploy-staging.yml +++ b/.github/workflows/deploy-staging.yml @@ -13,7 +13,7 @@ jobs: steps: - name: Mint token for infra id: infra-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 }} diff --git a/.github/workflows/stlc-generate.yml b/.github/workflows/stlc-generate.yml index 50a112f34..d91b21068 100644 --- a/.github/workflows/stlc-generate.yml +++ b/.github/workflows/stlc-generate.yml @@ -178,7 +178,7 @@ jobs: # Pull-requests:write for the integration-test draft PRs (action inputs # can't be conditional, so it is always requested). id: sdk-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 }} @@ -383,7 +383,7 @@ jobs: - name: Mint app token for the seal-back PR if: success() && github.event_name != 'pull_request' && !inputs.integration_test id: seal-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 }} @@ -428,7 +428,7 @@ jobs: steps: - name: Mint app token for the SDK repos id: sdk-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 }} From dc79f06ace860cf461b9e9644ab2d7bf6d8720ad Mon Sep 17 00:00:00 2001 From: rgarcia <72655+rgarcia@users.noreply.github.com> Date: Mon, 23 Nov 2026 16:45:54 +0000 Subject: [PATCH 2/2] Request pull-requests write only on integration-test runs --- .github/workflows/stlc-generate.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/stlc-generate.yml b/.github/workflows/stlc-generate.yml index d91b21068..7e1a82e4a 100644 --- a/.github/workflows/stlc-generate.yml +++ b/.github/workflows/stlc-generate.yml @@ -175,8 +175,8 @@ jobs: - name: Mint app token for the SDK repos # Workflows:write because the generated SDKs contain .github/workflows. - # Pull-requests:write for the integration-test draft PRs (action inputs - # can't be conditional, so it is always requested). + # Pull-requests:write only for integration-test runs, which open draft + # PRs; an empty value leaves the permission out. id: sdk-token uses: actions/create-github-app-token@v3.3.0 with: @@ -186,7 +186,7 @@ jobs: repositories: hypeman-go,hypeman-python,hypeman-ts,hypeman-go-staging,hypeman-python-staging,hypeman-ts-staging permission-contents: write permission-workflows: write - permission-pull-requests: write + permission-pull-requests: ${{ inputs.integration_test && 'write' || '' }} - name: Setup stlc uses: $/.github/actions/setup-stlc