Skip to content

Commit 7f2add8

Browse files
committed
Don't persist credentials
This is an insecure default on GitHub that increases the chances of credential leakage. <https://unit42.paloaltonetworks.com/github-repo-artifacts-leak-tokens/>
1 parent e2ecde3 commit 7f2add8

File tree

5 files changed

+19
-0
lines changed

5 files changed

+19
-0
lines changed

.github/workflows/devcontainer-docker-image.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424
steps:
2525
- name: Checkout source
2626
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
27+
with:
28+
persist-credentials: false
2729

2830
- name: Setup Docker buildx
2931
uses: docker/[email protected]

.github/workflows/docker-image.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
steps:
1515
- name: Checkout code
1616
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
17+
with:
18+
persist-credentials: false
1719

1820
- name: Login to Docker Hub
1921
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567

.github/workflows/mypy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
16+
with:
17+
persist-credentials: false
1618
- uses: mamba-org/setup-micromamba@v2
1719
with:
1820
environment-file: conda-envs/environment-test.yml

.github/workflows/pr-auto-label.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ jobs:
1111
steps:
1212
- name: Checkout repository
1313
uses: actions/checkout@v2
14+
with:
15+
persist-credentials: false
1416
- name: Sync labels with closing issues
1517
uses: wd60622/[email protected]
1618
with:

.github/workflows/tests.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
3535
with:
3636
fetch-depth: 0
37+
persist-credentials: false
3738
- uses: dorny/paths-filter@v3
3839
id: changes
3940
with:
@@ -143,6 +144,8 @@ jobs:
143144
shell: bash -leo pipefail {0}
144145
steps:
145146
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
147+
with:
148+
persist-credentials: false
146149
- uses: mamba-org/setup-micromamba@v2
147150
with:
148151
environment-file: conda-envs/environment-test.yml
@@ -193,6 +196,8 @@ jobs:
193196
shell: cmd /C call {0}
194197
steps:
195198
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
199+
with:
200+
persist-credentials: false
196201
- uses: mamba-org/setup-micromamba@v2
197202
with:
198203
environment-file: conda-envs/windows-environment-test.yml
@@ -251,6 +256,8 @@ jobs:
251256
shell: bash -leo pipefail {0}
252257
steps:
253258
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
259+
with:
260+
persist-credentials: false
254261
- uses: mamba-org/setup-micromamba@v2
255262
with:
256263
environment-file: conda-envs/environment-test.yml
@@ -295,6 +302,8 @@ jobs:
295302
shell: bash -leo pipefail {0}
296303
steps:
297304
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
305+
with:
306+
persist-credentials: false
298307
- uses: mamba-org/setup-micromamba@v2
299308
with:
300309
environment-file: conda-envs/environment-jax.yml
@@ -339,6 +348,8 @@ jobs:
339348
shell: cmd /C call {0}
340349
steps:
341350
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
351+
with:
352+
persist-credentials: false
342353
- uses: mamba-org/setup-micromamba@v2
343354
with:
344355
environment-file: conda-envs/windows-environment-test.yml

0 commit comments

Comments
 (0)