@devries-cameron20 / t3code Mirror · read-only / commits / 556c42452c
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 25, 05:00 UTC

Harden GitHub workflow permissions

- Restrict release workflow defaults to read-only access - Grant `id-token` only to the publish job - Document safe handling for `pull_request_target` in PR size checks

Julius Marminge committed May 13, 2026 at 14:19 UTC 556c42452c5ac94ae8d8698d64fcd372c1680955
2 files changed +8 -2
.github/workflows/pr-size.yml
+3
@@ -124,6 +124,9 @@ jobs:
124 group: pr-size-${{ github.event.pull_request.number }}
125 cancel-in-progress: true
126 steps:
127 + # This pull_request_target job may fetch untrusted PR commits only as passive
128 + # git data. Do not add dependency installs, build/test scripts, or cache
129 + # actions here; use pull_request plus workflow_run for that pattern instead.
130 - name: Checkout base repository
131 uses: actions/checkout@v4
132 with:
.github/workflows/release.yml
+5 -2
@@ -23,8 +23,8 @@ on:
23 type: string
24
25 permissions:
26 - contents: write
27 - id-token: write
26 + contents: read
27 + id-token: none
28
29 jobs:
30 check_changes:
@@ -420,6 +420,9 @@ jobs:
420 if: ${{ !failure() && !cancelled() && needs.preflight.result == 'success' && needs.build.result == 'success' }}
421 runs-on: ubuntu-24.04 # blacksmith-8vcpu-ubuntu-2404
422 timeout-minutes: 10
423 + permissions:
424 + contents: read
425 + id-token: write
426 steps:
427 - name: Checkout
428 uses: actions/checkout@v6