From 53a6bcf638f61b7fe6dd66bc9de66f953884e595 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Igor=20Pe=C4=8Dovnik?= Date: Wed, 8 Mar 2023 11:20:05 +0100 Subject: [PATCH] Improve filelist filtering to check only files that are interested for this (#4919) Signed-off-by: Igor --- .github/workflows/kernel-security-analysis-pr.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/kernel-security-analysis-pr.yml b/.github/workflows/kernel-security-analysis-pr.yml index fea7afc37..134e02dfc 100644 --- a/.github/workflows/kernel-security-analysis-pr.yml +++ b/.github/workflows/kernel-security-analysis-pr.yml @@ -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