Improve filelist filtering to check only files that are interested for this (#4919)

Signed-off-by: Igor <igor@armbian.com>
This commit is contained in:
Igor Pečovnik
2023-03-08 11:20:05 +01:00
committed by GitHub
parent 06ff3e3f07
commit 53a6bcf638

View File

@@ -42,5 +42,7 @@ jobs:
- name: Check kernel config for security issues
run: |
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
kconfig-hardened-check/bin/kconfig-hardened-check -m show_fail -c $file | sed -e 's/^/ /' >> $GITHUB_STEP_SUMMARY
if [[ "${file}" = config/kernel/*.config ]]; then
kconfig-hardened-check/bin/kconfig-hardened-check -m show_fail -c $file | sed -e 's/^/ /' >> $GITHUB_STEP_SUMMARY
fi
done