1- # SPDX-License-Identifier: MPL-2.0
1+ # SPDX-License-Identifier: AGPL-3.0-or-later
22name : Code Quality
3-
43on : [push, pull_request]
54
5+
66permissions : read-all
77
88jobs :
@@ -11,51 +11,46 @@ jobs:
1111 permissions :
1212 contents : read
1313 steps :
14- - uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
15- with :
16- persist-credentials : false
17-
14+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
15+
1816 - name : Check file permissions
1917 run : |
2018 find . -type f -perm /111 -name "*.sh" | head -10 || true
21-
19+
2220 - name : Check for secrets
23- uses : trufflesecurity/trufflehog@8a83df83c66e0b5c7ee6b3cd5636dd2d2c0c7c56 # v3.88.0
21+ uses : trufflesecurity/trufflehog@05cccb53bc9e13bc6d17997db5a6bcc3df44bf2f # v3.92.3
2422 with :
2523 path : ./
2624 base : ${{ github.event.pull_request.base.sha || github.event.before }}
2725 head : ${{ github.sha }}
2826 continue-on-error : true
29-
27+
3028 - name : Check TODO/FIXME
3129 run : |
3230 echo "=== TODOs ==="
3331 grep -rn "TODO\|FIXME\|HACK\|XXX" --include="*.rs" --include="*.res" --include="*.py" --include="*.ex" . | head -20 || echo "None found"
34-
32+
3533 - name : Check for large files
3634 run : |
3735 find . -type f -size +1M -not -path "./.git/*" | head -10 || echo "No large files"
38-
36+
3937 - name : EditorConfig check
40- uses : editorconfig-checker/action-editorconfig-checker@8c9b118d446fce7e6410b6c0a3ce2f83bd04e97a # v2.0 .0
38+ uses : editorconfig-checker/action-editorconfig-checker@8c9b118d446fce7e6410b6c0a3ce2f83bd04e97a # v2.1 .0
4139 continue-on-error : true
4240
4341 docs :
4442 runs-on : ubuntu-latest
4543 permissions :
4644 contents : read
4745 steps :
48- - uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
49- with :
50- persist-credentials : false
51-
46+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5247 - name : Check documentation
5348 run : |
5449 MISSING=""
5550 [ ! -f "README.md" ] && [ ! -f "README.adoc" ] && MISSING="$MISSING README"
5651 [ ! -f "LICENSE" ] && [ ! -f "LICENSE.txt" ] && [ ! -f "LICENSE.md" ] && MISSING="$MISSING LICENSE"
5752 [ ! -f "CONTRIBUTING.md" ] && [ ! -f "CONTRIBUTING.adoc" ] && MISSING="$MISSING CONTRIBUTING"
58-
53+
5954 if [ -n "$MISSING" ]; then
6055 echo "::warning::Missing docs:$MISSING"
6156 else
0 commit comments