diff --git a/.github/workflows/update-test-rules.yml b/.github/workflows/update-test-rules.yml index 89c681c27e0..7a6507a2537 100644 --- a/.github/workflows/update-test-rules.yml +++ b/.github/workflows/update-test-rules.yml @@ -122,6 +122,12 @@ jobs: # but it doesn't seem any simpler). And then add testing metadata. # If multiple PRs modify the same file, only one can be tested. This is solveable, but not something we see often. for file in $files_changed; do + # Skip any LA rules. We'll ignore these downstream anyway, but best to keep the branch clean. + la_count=$(grep -c 'beta.linkanalysis' detection-rules/$file || true) + if [[ "$la_count" != '0' ]]; then + continue + fi + cp source/$file destination/$file yq -i '.testing_pr = env(pr_num)' destination/$file yq -i '.testing_sha = env(sha)' destination/$file