mirror of
https://github.com/stack-auth/stack.git
synced 2026-07-20 21:29:36 +08:00
Harden serialization-compat workflow token scope
Some checks failed
Bulldozer serialization compat / Check if bulldozer serialization changed (push) Has been cancelled
DB migration compat / Check if migrations changed (push) Has been cancelled
Bulldozer serialization compat / Cross-version read (base ↔ current) (push) Has been cancelled
Bulldozer serialization compat / No serialization changes (skipped) (push) Has been cancelled
DB migration compat / Back-compat — Current branch migrations with ${{ needs.check-migrations-changed.outputs.base_branch }} branch code (push) Has been cancelled
DB migration compat / Forward-compat — Current branch code with ${{ needs.check-migrations-changed.outputs.base_branch }} branch migrations (push) Has been cancelled
DB migration compat / No migration changes (skipped) (push) Has been cancelled
Some checks failed
Bulldozer serialization compat / Check if bulldozer serialization changed (push) Has been cancelled
DB migration compat / Check if migrations changed (push) Has been cancelled
Bulldozer serialization compat / Cross-version read (base ↔ current) (push) Has been cancelled
Bulldozer serialization compat / No serialization changes (skipped) (push) Has been cancelled
DB migration compat / Back-compat — Current branch migrations with ${{ needs.check-migrations-changed.outputs.base_branch }} branch code (push) Has been cancelled
DB migration compat / Forward-compat — Current branch code with ${{ needs.check-migrations-changed.outputs.base_branch }} branch migrations (push) Has been cancelled
DB migration compat / No migration changes (skipped) (push) Has been cancelled
Add a top-level read-only permissions block and persist-credentials: false on every checkout, so the GITHUB_TOKEN isn't exposed to the pnpm install / tsx steps. The workflow only reads code and runs tests. Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>
This commit is contained in:
parent
20a304fc36
commit
b1be2a0f85
@ -13,6 +13,10 @@ on:
|
||||
- main
|
||||
pull_request:
|
||||
|
||||
# This workflow only checks out code and runs tests; it never pushes or calls the GitHub API.
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: ${{ github.ref != 'refs/heads/dev' }}
|
||||
@ -34,6 +38,7 @@ jobs:
|
||||
- name: Checkout current branch
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
||||
with:
|
||||
persist-credentials: false
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Check for serialization-relevant changes
|
||||
@ -68,11 +73,13 @@ jobs:
|
||||
- name: Checkout current branch
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
||||
with:
|
||||
persist-credentials: false
|
||||
path: current
|
||||
|
||||
- name: Checkout base branch (${{ needs.check-changed.outputs.base_branch }})
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
||||
with:
|
||||
persist-credentials: false
|
||||
ref: ${{ needs.check-changed.outputs.base_branch }}
|
||||
path: base
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user