Skip to content

Commit 430d90d

Browse files
Merge pull request #28 from ApolloAutomation/harden-checkout-persist-credentials
Add persist-credentials: false to all checkout steps
2 parents 1a9ff53 + 27d32bd commit 430d90d

3 files changed

Lines changed: 15 additions & 2 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ jobs:
6565
uses: actions/checkout@v7
6666
with:
6767
fetch-depth: 2
68+
persist-credentials: false
6869

6970
- name: Find .yaml Changes in Last PR Merge
7071
id: check
@@ -103,6 +104,8 @@ jobs:
103104
steps:
104105
- name: Checkout code
105106
uses: actions/checkout@v7
107+
with:
108+
persist-credentials: false
106109

107110
- name: Read version from YAML file
108111
id: read_version
@@ -259,6 +262,8 @@ jobs:
259262
steps:
260263
- name: Checkout code
261264
uses: actions/checkout@v7
265+
with:
266+
persist-credentials: false
262267

263268
# Download all firmware artifacts
264269
- name: Download all firmware artifacts

‎.github/workflows/minimal-pages.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ jobs:
2323
steps:
2424
- name: Checkout code
2525
uses: actions/checkout@v7
26-
26+
with:
27+
persist-credentials: false
28+
2729
- name: Find and display all symlinks and hardlinks
2830
run: |
2931
echo "=== DETAILED LINK ANALYSIS ==="

‎.github/workflows/publish.yml‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ jobs:
2626
steps:
2727
- name: Checkout code
2828
uses: actions/checkout@v7
29+
with:
30+
persist-credentials: false
2931
- name: Read version from YAML file
3032
id: read_version
3133
run: |
@@ -71,6 +73,8 @@ jobs:
7173
steps:
7274
- name: Checkout source code
7375
uses: actions/checkout@v7
76+
with:
77+
persist-credentials: false
7478

7579
- name: Debug repository structure
7680
run: |
@@ -136,7 +140,9 @@ jobs:
136140
steps:
137141
- name: Checkout code
138142
uses: actions/checkout@v7
139-
143+
with:
144+
persist-credentials: false
145+
140146
- name: Debug link analysis
141147
run: |
142148
find . -type l -not -path "./.git/*" -ls | tee repo_symlinks.txt

0 commit comments

Comments
 (0)