Skip to content

Commit ac667f2

Browse files
authored
ci: standardize workflow validation (#155)
1 parent 60c9040 commit ac667f2

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/validate-workflows.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: Validate Workflows
22

33
permissions:
4-
contents: write
5-
pull-requests: write
4+
contents: read # required for actions/checkout
5+
pull-requests: read # only needed for fork PRs
66

77
on:
88
pull_request:
@@ -21,7 +21,7 @@ jobs:
2121
fetch-depth: 0 # Fetch full history for git comparisons
2222

2323
- name: Set up Python
24-
uses: actions/setup-python@v5 # zizmor: ignore[unpinned-uses]
24+
uses: actions/setup-python@v6 # zizmor: ignore[unpinned-uses]
2525
with:
2626
python-version: '3.12'
2727

@@ -138,7 +138,7 @@ jobs:
138138
else
139139
echo "::warning::Cannot find base ref ${BASE_REF} in any form"
140140
echo "Falling back to validating all workflow files"
141-
changed_files=$(find . -name "*.yml" -o -name "*.yaml" | sed 's|^\./||' || true)
141+
changed_files=$(find .github/workflows -type f \( -name "*.yml" -o -name "*.yaml" \) || true)
142142
fi
143143
fi
144144
@@ -188,7 +188,7 @@ jobs:
188188
189189
- name: Upload zizmor logs
190190
if: always()
191-
uses: actions/upload-artifact@v4 # zizmor: ignore[unpinned-uses]
191+
uses: actions/upload-artifact@v7 # zizmor: ignore[unpinned-uses]
192192
with:
193193
name: zizmor-logs
194194
path: ${{ github.workspace }}/zizmor-logs

0 commit comments

Comments
 (0)