Skip to content

Commit 12b44c0

Browse files
committed
ci: minimize workflow credential exposure
1 parent 9de48c3 commit 12b44c0

9 files changed

Lines changed: 18 additions & 0 deletions

.github/workflows/addon-publish-dev.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ jobs:
5959
steps:
6060
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
6161
with:
62+
persist-credentials: false
6263
# Full history: the dev version number is the commit count.
6364
fetch-depth: 0
6465

@@ -102,6 +103,7 @@ jobs:
102103
steps:
103104
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
104105
with:
106+
persist-credentials: false
105107
submodules: true
106108

107109
- name: Set up Docker Buildx

.github/workflows/addon-publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ jobs:
4141
steps:
4242
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
4343
with:
44+
persist-credentials: false
4445
submodules: true
4546
# Check out the release tag so uv sync installs the bumped pyproject.toml.
4647
# Without this, GITHUB_SHA points to the pre-semantic-release merge commit

.github/workflows/build-haos-test-image.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ jobs:
5959
steps:
6060
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
6161
with:
62+
persist-credentials: false
6263
# Required for the skills bundle submodule at
6364
# src/ha_mcp/resources/skills-vendor (test_skills_resources.py).
6465
submodules: true

.github/workflows/codeql-quality.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ jobs:
7171

7272
steps:
7373
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
74+
with:
75+
persist-credentials: false
7476

7577
- name: Set up Python
7678
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7

.github/workflows/haos-e2e-embedded-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ jobs:
6767
run: ${{ steps.filter.outputs.run }}
6868
steps:
6969
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
70+
with:
71+
persist-credentials: false
7072
- name: Classify changed files
7173
id: filter
7274
env:
@@ -135,6 +137,7 @@ jobs:
135137
steps:
136138
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
137139
with:
140+
persist-credentials: false
138141
# Required for tests/src/e2e/tools/test_skills_resources.py — the
139142
# skills bundle lives at src/ha_mcp/resources/skills-vendor.
140143
submodules: true

.github/workflows/haos-e2e-inaddon-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ jobs:
7070
run: ${{ steps.filter.outputs.run }}
7171
steps:
7272
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
73+
with:
74+
persist-credentials: false
7375
- name: Classify changed files
7476
id: filter
7577
env:
@@ -133,6 +135,7 @@ jobs:
133135
steps:
134136
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
135137
with:
138+
persist-credentials: false
136139
submodules: true
137140
# Full history so merge-ref git operations resolve cleanly.
138141
fetch-depth: 0

.github/workflows/validate.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
runs-on: ubuntu-latest
1919
steps:
2020
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
21+
with:
22+
persist-credentials: false
2123
- name: HACS validation
2224
uses: hacs/action@1ebf01c408f29afcb6406bd431bc98fd8cbb15aa # main
2325
with:
@@ -28,6 +30,8 @@ jobs:
2830
runs-on: ubuntu-latest
2931
steps:
3032
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
33+
with:
34+
persist-credentials: false
3135
# Drop vendored third-party fixtures (e.g. the upstream HACS integration
3236
# used as an e2e fixture) so hassfest only validates integrations this repo
3337
# owns. Mirrors scripts/codeql_quality_gate.py's PATHS_IGNORE convention.

.github/workflows/webhook-proxy-dev-version-guard.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
1616
with:
17+
persist-credentials: false
1718
fetch-depth: 0
1819
- name: Require a dev version bump and config/manifest parity
1920
env:

.github/workflows/webhook-proxy-stable-guard.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
steps:
2727
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
2828
with:
29+
persist-credentials: false
2930
fetch-depth: 0
3031

3132
- name: Block direct stable edits outside the promote workflow

0 commit comments

Comments
 (0)