From fef5fbc181cf1ef128b1d54a71412af11d59c9a1 Mon Sep 17 00:00:00 2001 From: Leslie Helou Date: Fri, 6 Feb 2026 12:05:12 -0500 Subject: [PATCH] Update license_check.yml show the name of the file that failed a check --- .github/workflows/license_check.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/license_check.yml b/.github/workflows/license_check.yml index 0459cfb..23b49ba 100644 --- a/.github/workflows/license_check.yml +++ b/.github/workflows/license_check.yml @@ -29,6 +29,7 @@ jobs: # We grep for Copyright, then pipe to grep for Jamf to ensure they are on the same line. if ! grep "Copyright" "$file" | grep -q "Jamf"; then echo "::error file=$file::Missing 'Copyright' and 'Jamf' on the same line." + echo "File: ${file}" missing_reqs=1 fi @@ -39,12 +40,14 @@ jobs: # Requirement 2: Specific license string if ! grep -Fq "This work is licensed under the terms of the Jamf Source Available License" "$file"; then echo "::error file=$file::Missing 'This work is licensed under the terms of the Jamf Source Available License'" + echo "File: ${file}" missing_reqs=1 fi # Requirement 3: License URL if ! grep -Fq "https://github.com/jamf/scripts/blob/main/LICENCE.md" "$file"; then echo "::error file=$file::Missing 'https://github.com/jamf/scripts/blob/main/LICENCE.md'" + echo "File: ${file}" missing_reqs=1 fi fi