Compare commits

...

2 Commits

Author SHA1 Message Date
Kevin Han
0d83cf66b0
Merge 297d6bd869 into fa5af77369 2026-06-02 11:10:42 +01:00
Kevin
297d6bd869 Set persist-credentials: false on checkouts before untrusted steps.
Prevents GITHUB_TOKEN from being written to git config before pip/pytest
in CI and before build steps in release. add-tag checkout keeps default
credentials for GitHub release creation.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-02 11:10:36 +01:00
2 changed files with 6 additions and 0 deletions

View File

@ -23,6 +23,8 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-python@v5
with:
python-version: '3.11'

View File

@ -21,6 +21,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- id: validate
env:
RELEASE_VERSION: ${{ inputs.releaseVersion }}
@ -44,6 +45,8 @@ jobs:
packages: ${{ steps.packages.outputs.packages }}
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- id: packages
run: |
shopt -s nullglob
@ -80,6 +83,7 @@ jobs:
- uses: actions/checkout@v4
with:
ref: main
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@v5
with: