Skip to content

Commit be108c9

Browse files
committed
ci: tighten security of checkout action
1 parent 36fdc9f commit be108c9

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ jobs:
1111
name: 🔨 Build distribution
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@v6
15+
with:
16+
persist-credentials: false
1517
- name: 🏗 Set up Python 3.10
1618
uses: actions/setup-python@v5
1719
with:
@@ -25,7 +27,9 @@ jobs:
2527
name: 🧹 Pre-commit
2628
runs-on: ubuntu-latest
2729
steps:
28-
- uses: actions/checkout@v4
30+
- uses: actions/checkout@v6
31+
with:
32+
persist-credentials: false
2933
- name: 🏗 Set up Python 3.10
3034
uses: actions/setup-python@v5
3135
with:
@@ -45,7 +49,9 @@ jobs:
4549
python: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
4650
runs-on: ubuntu-22.04 # change back to ubuntu-latest once we drop Python 3.7
4751
steps:
48-
- uses: actions/checkout@v4
52+
- uses: actions/checkout@v6
53+
with:
54+
persist-credentials: false
4955
- name: 🏗 Set up Python ${{ matrix.python }}
5056
uses: actions/setup-python@v5
5157
with:

0 commit comments

Comments
 (0)