Skip to content

Commit 6ef8578

Browse files
committed
Suppress zizmor false positive
1 parent 41645a1 commit 6ef8578

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/ci-cd.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ jobs:
3636
# yamllint disable-line rule:line-length
3737
uses: astral-sh/setup-uv@c7f87aa956e4c323abf06d5dec078e358f6b4d04 # v6.0.0
3838
with:
39-
# prevent cache poisoning
40-
enable-cache: ${{ github.ref_type == 'tag' && 'false' || 'auto' }}
39+
# yamllint disable-line rule:line-length
40+
enable-cache: | # zizmor: ignore[cache-poisoning] cache is disabled when publishing to prevent poisoning
41+
${{ github.ref_type == 'tag' && 'false' || 'auto' }}
4142
- name: Build distribution 📦
4243
run: uv build
4344
- name: Check distribution 📦
@@ -90,8 +91,9 @@ jobs:
9091
uses: astral-sh/setup-uv@c7f87aa956e4c323abf06d5dec078e358f6b4d04 # v6.0.0
9192
with:
9293
python-version: ${{ matrix.python-version }}
93-
# prevent cache poisoning
94-
enable-cache: ${{ github.ref_type == 'tag' && 'false' || 'auto' }}
94+
# yamllint disable-line rule:line-length
95+
enable-cache: | # zizmor: ignore[cache-poisoning] cache is disabled when publishing to prevent poisoning
96+
${{ github.ref_type == 'tag' && 'false' || 'auto' }}
9597
- name: Run pre-commit hooks
9698
run: |
9799
uv run make pre-commit

0 commit comments

Comments
 (0)