Skip to content

Commit 44b70f7

Browse files
ludeeusclaude
andauthored
Disable credential persistence in GitHub Actions workflows (#378)
Add persist-credentials: false to the actions/checkout steps in both workflows, following the OpenSSF-recommended default. This prevents the GITHUB_TOKEN from being written to .git/config for later steps. Claude-Session: https://claude.ai/code/session_01YQQqMUxmvcm7kVSY4azyiN Co-authored-by: Claude <noreply@anthropic.com>
1 parent 739cc73 commit 44b70f7

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/lint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
steps:
1818
- name: Checkout the repository
1919
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
20+
with:
21+
persist-credentials: false
2022

2123
- name: Set up Python
2224
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0

.github/workflows/validate.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
steps:
2121
- name: Checkout the repository
2222
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
23+
with:
24+
persist-credentials: false
2325

2426
- name: Run hassfest validation
2527
uses: home-assistant/actions/hassfest@f4ca6f671bd429efb108c0f2fa0ae8af0215986c # master

0 commit comments

Comments
 (0)