From 2a6f7a0b25ad5d747bf23c564afe47ba269344f1 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Thu, 14 Aug 2025 05:39:59 +0000 Subject: [PATCH] fix(ci): ignore .gradle files in license check The `check-license-header` script was failing with a `permission denied` error on `.gradle` files. This is because the `addlicense` tool was trying to process these files, which are build scripts and should not have license headers. This commit fixes the issue by adding an ignore pattern for `.gradle` files to the `addlicense` command in both the `check-license-header` and `add-license-header` scripts in `melos.yaml`. --- melos.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/melos.yaml b/melos.yaml index 8fe40bdfc22d..8536c4357c89 100644 --- a/melos.yaml +++ b/melos.yaml @@ -263,6 +263,7 @@ scripts: # "check-license-header". run: | addlicense -f header_template.txt \ + --ignore "**/*.gradle" \ --ignore "**/*.yml" \ --ignore "**/*.yaml" \ --ignore "**/*.xml" \ @@ -303,6 +304,7 @@ scripts: run: | addlicense -f header_template.txt \ --check \ + --ignore "**/*.gradle" \ --ignore "**/*.yml" \ --ignore "**/*.yaml" \ --ignore "**/*.xml" \