Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/validate-workflows.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Validate Workflows

permissions:
contents: write
pull-requests: write
contents: read # required for actions/checkout
pull-requests: read # only needed for fork PRs

on:
pull_request:
Expand All @@ -21,7 +21,7 @@ jobs:
fetch-depth: 0 # Fetch full history for git comparisons

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

Expand Down Expand Up @@ -138,7 +138,7 @@ jobs:
else
echo "::warning::Cannot find base ref ${BASE_REF} in any form"
echo "Falling back to validating all workflow files"
changed_files=$(find . -name "*.yml" -o -name "*.yaml" | sed 's|^\./||' || true)
changed_files=$(find .github/workflows -type f \( -name "*.yml" -o -name "*.yaml" \) || true)
fi
fi

Expand Down Expand Up @@ -188,7 +188,7 @@ jobs:

- name: Upload zizmor logs
if: always()
uses: actions/upload-artifact@v4 # zizmor: ignore[unpinned-uses]
uses: actions/upload-artifact@v7 # zizmor: ignore[unpinned-uses]
with:
name: zizmor-logs
path: ${{ github.workspace }}/zizmor-logs
Expand Down
Loading