Skip to content

Commit 3ee198f

Browse files
committed
github: do not persist git creds beyond checkout in tests job
Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
1 parent 36b5c21 commit 3ee198f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
steps:
2121
- name: Repository checkout
2222
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
23+
with:
24+
persist-credentials: false
2325

2426
- name: Require GHA pinning
2527
uses: canonical/lxd/.github/actions/require-gha-pinning@main
@@ -54,6 +56,8 @@ jobs:
5456
steps:
5557
- name: Repository checkout
5658
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
59+
with:
60+
persist-credentials: false
5761

5862
- name: Install dependencies
5963
run: |
@@ -84,6 +88,8 @@ jobs:
8488
steps:
8589
- name: Repository checkout
8690
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
91+
with:
92+
persist-credentials: false
8793

8894
- name: Set up Python
8995
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0

0 commit comments

Comments
 (0)