Skip to content

Commit 9c78f17

Browse files
author
Martin Belanger
committed
ci: replace webispy/checkpatch-action with upstream checkpatch.pl
Fetch checkpatch.pl directly from torvalds/linux instead of using the frozen third-party webispy/checkpatch-action (last updated 2022). This avoids supply chain risk from pinned third-party actions and ensures we always run a recent checkpatch with up-to-date signature tag support (e.g. the kernel-style Assisted-by format). Project-specific settings are already captured in .checkpatch.conf and are picked up automatically by checkpatch.pl at runtime. Signed-off-by: Martin Belanger <[email protected]> Assisted-by: Claude:claude-sonnet-4-6 [Claude Code]
1 parent ccd5d5a commit 9c78f17

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/checkpatch.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,17 @@ jobs:
1313
name: checkpatch review
1414
runs-on: ubuntu-latest
1515
steps:
16-
- name: 'Calculate PR commits + 1'
17-
run: echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 1 ))" >> $GITHUB_ENV
1816
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1917
with:
2018
ref: ${{ github.event.pull_request.head.sha }}
2119
fetch-depth: 0
20+
- name: Fetch checkpatch.pl
21+
run: |
22+
curl -sSf \
23+
https://raw.githubusercontent.com/torvalds/linux/master/scripts/checkpatch.pl \
24+
-o checkpatch.pl
25+
2226
- name: Run checkpatch review
23-
uses: webispy/checkpatch-action@58374fe5bb03358b23d3d6871e2ff290ce77fcd2 # v9
27+
run: |
28+
git format-patch --stdout origin/${{ github.base_ref }}..HEAD \
29+
| perl checkpatch.pl -

0 commit comments

Comments
 (0)