File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Validate Workflows
22
33permissions :
4- contents : write
5- pull-requests : write
4+ contents : read # required for actions/checkout
5+ pull-requests : read # only needed for fork PRs
66
77on :
88 pull_request :
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
You can’t perform that action at this time.
0 commit comments