From 06e4672f8b7fce2d3c85fb637c061010421c976f Mon Sep 17 00:00:00 2001 From: Leslie Helou Date: Tue, 3 Feb 2026 03:50:49 -0500 Subject: [PATCH 1/3] include README.md in scan for license/copywrite --- .github/workflows/license_check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/license_check.yml b/.github/workflows/license_check.yml index 2c06a94..ce3ecf0 100644 --- a/.github/workflows/license_check.yml +++ b/.github/workflows/license_check.yml @@ -16,7 +16,7 @@ jobs: failed=0 # Find files: .sh, .go, .swift, .py # Exclude hidden directories/files (like inside .git) - files=$(find . -type f \( -name "*.sh" -o -name "*.go" -o -name "*.swift" -o -name "*.py" \) -not -path '*/.*') + files=$(find . -type f \( -name "*.sh" -o -name "*.go" -o -name "*.swift" -o -name "*.py" -o -name "README.md" \) -not -path '*/.*') for file in $files; do missing_reqs=0 From a6c5afbfb0aaf2a3d6b06f8b5ede07980329dc90 Mon Sep 17 00:00:00 2001 From: Leslie Helou Date: Tue, 3 Feb 2026 03:55:25 -0500 Subject: [PATCH 2/3] rename README.md to readme.md --- README.md => readme.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename README.md => readme.md (100%) diff --git a/README.md b/readme.md similarity index 100% rename from README.md rename to readme.md From 1d890032c7f7dbe504fdeaba1a7071a23f29449c Mon Sep 17 00:00:00 2001 From: Leslie Helou Date: Tue, 3 Feb 2026 15:17:20 -0500 Subject: [PATCH 3/3] Update license_check.yml Check README.md for copyright only and skip README at root level. --- .github/workflows/license_check.yml | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/.github/workflows/license_check.yml b/.github/workflows/license_check.yml index ce3ecf0..0459cfb 100644 --- a/.github/workflows/license_check.yml +++ b/.github/workflows/license_check.yml @@ -19,6 +19,10 @@ jobs: files=$(find . -type f \( -name "*.sh" -o -name "*.go" -o -name "*.swift" -o -name "*.py" -o -name "README.md" \) -not -path '*/.*') for file in $files; do + if [ "$file" = "./README.md" ]; then + continue + fi + missing_reqs=0 # Requirement 1: A line with both "Copyright" and "Jamf" @@ -28,16 +32,21 @@ jobs: missing_reqs=1 fi - # 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'" - 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'" - missing_reqs=1 + filename=$(basename "${file}") + if [ "${filename}" = "README.md" ]; then + echo "skipping license check for: ${file}" + else + # 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'" + 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'" + missing_reqs=1 + fi fi if [ $missing_reqs -eq 1 ]; then