mirror of
https://github.com/Canner/WrenAI.git
synced 2026-10-16 15:07:41 +08:00
ci: stop persisting the checkout token in the context loader job
The job builds and tests pull-request-authored code, and `actions/checkout` leaves the token in the checkout by default, where a build script or a test can read it. Nothing in this job touches git past the checkout, so the credentials are pure downside. Matches how the SDK workflow already checks out.
This commit is contained in:
@@ -29,7 +29,12 @@ jobs:
|
||||
name: fmt, clippy, test
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
# No credentials persisted: this job builds and tests pull-request-authored code, and a
|
||||
# build script or test could otherwise read the token out of the checkout. Nothing here
|
||||
# touches git beyond the checkout itself.
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
- name: Setup Rust toolchain
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
|
||||
Reference in New Issue
Block a user