Skip to content

Commit 19e9b1d

Browse files
authored
Hygiene: Switch checkout action to disable credential persistence (#211)
1 parent 940d88d commit 19e9b1d

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ jobs:
2929
- 5432:5432
3030
steps:
3131
- uses: actions/checkout@v4
32+
with:
33+
persist-credentials: false
3234
- name: Set up Python ${{ matrix.python-version }}
3335
uses: actions/setup-python@v5
3436
with:

.github/workflows/docker-image.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
- id: checkout
1919
name: Checkout
2020
uses: actions/checkout@v4
21+
with:
22+
persist-credentials: false
2123

2224
- id: auth
2325
name: Authenticate with Google Cloud

.github/workflows/lint.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v4
12+
with:
13+
persist-credentials: false
1214
- uses: actions/setup-node@v4
1315
with:
1416
node-version: 20
@@ -23,6 +25,8 @@ jobs:
2325
python-version: ["3.13"]
2426
steps:
2527
- uses: actions/checkout@v4
28+
with:
29+
persist-credentials: false
2630
- name: Set up Python ${{ matrix.python-version }}
2731
uses: actions/setup-python@v5
2832
with:

.github/workflows/semgrep.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,6 @@ jobs:
1818
if: (github.actor != 'dependabot[bot]')
1919
steps:
2020
- uses: actions/checkout@v4
21+
with:
22+
persist-credentials: false
2123
- run: semgrep ci

0 commit comments

Comments
 (0)