Skip to content

Commit af64d38

Browse files
committed
fix: credential persistence through GitHub Actions artifacts
1 parent c23c9db commit af64d38

File tree

7 files changed

+16
-1
lines changed

7 files changed

+16
-1
lines changed

.github/workflows/build-image-test.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3737
with:
3838
fetch-depth: 0
39+
persist-credentials: false
3940

4041
- name: Get changed Docker related files
4142
id: changed-files-specific

.github/workflows/build-image.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ jobs:
2121
steps:
2222
- name: Checkout code
2323
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
24+
with:
25+
persist-credentials: false
26+
2427
- name: Set up Docker Buildx
2528
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0
2629
- name: Login to GitHub Container Registry

.github/workflows/ci-cd.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ jobs:
112112
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
113113
with:
114114
fetch-depth: 0
115+
persist-credentials: false
115116
- name: >-
116117
Calculate Python interpreter version hash value
117118
for use in the cache key
@@ -282,6 +283,7 @@ jobs:
282283
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
283284
with:
284285
fetch-depth: 0
286+
persist-credentials: false
285287

286288
- name: >-
287289
Calculate Python interpreter version hash value

.github/workflows/codeql.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ jobs:
4444
steps:
4545
- name: Checkout repository
4646
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
47+
with:
48+
persist-credentials: false
4749

4850
# Initializes the CodeQL tools for scanning.
4951
- name: Initialize CodeQL

.github/workflows/dependency-review.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,8 @@ jobs:
2222
steps:
2323
- name: Checkout Repository
2424
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
25+
with:
26+
persist-credentials: false
27+
2528
- name: Dependency Review
2629
uses: actions/dependency-review-action@da24556b548a50705dd671f47852072ea4c105d9 # v4.7.1

.github/workflows/pre-commit.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
17+
with:
18+
persist-credentials: false
1719
- run: >-
1820
git fetch --no-tags --prune --depth=1 origin
1921
+refs/heads/*:refs/remotes/origin/*
@@ -48,10 +50,11 @@ jobs:
4850
)"
4951
> hadolint
5052
&& chmod +x hadolint && sudo mv hadolint /usr/bin/
51-
# Needed for pre-commit fix push to succeed
53+
# Needed for pre-commit fix push to succeed
5254
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5355
with:
5456
fetch-depth: 0
57+
persist-credentials: false
5558
ref: ${{ github.event.pull_request.head.sha }}
5659
# Needed to trigger pre-commit workflow on autofix commit. Guide:
5760
# https://web.archive.org/web/20210731173012/https://github.community/t/required-check-is-expected-after-automated-push/187545/

.github/workflows/reusable-tox.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ jobs:
170170
contains(fromJSON('["pre-commit", "spellcheck-docs"]'), inputs.toxenv)
171171
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
172172
with:
173+
persist-credentials: false
173174
ref: ${{ github.event.inputs.release-committish }}
174175
- name: Retrieve the project source from an sdist inside the GHA artifact
175176
if: >-

0 commit comments

Comments
 (0)