fix(lts): static checks to point to lts

Changing references in static checks script from origin/master to
origin/lts-v2.8

Signed-off-by: Lauren Wehrmeister <lauren.wehrmeister@arm.com>
Change-Id: Ib954b64df2520e375a2479d7b04ee0a8083f2867
diff --git a/script/static-checks/check-banned-api.py b/script/static-checks/check-banned-api.py
index 84d5b0e..30585bd 100755
--- a/script/static-checks/check-banned-api.py
+++ b/script/static-checks/check-banned-api.py
@@ -168,7 +168,7 @@
                         help="""
                         Base commit in patch mode (default: %(default)s)
                         """,
-                        default="master")
+                        default="lts-v2.8")
     parser.add_argument("--to-ref",
                         help="""
                         Final commit in patch mode (default: %(default)s)
diff --git a/script/static-checks/check-copyright.py b/script/static-checks/check-copyright.py
index a05b4ca..509f889 100755
--- a/script/static-checks/check-copyright.py
+++ b/script/static-checks/check-copyright.py
@@ -180,7 +180,7 @@
 only files that are modified by the latest patch(es).""",
                         action="store_true")
 
-    (rc, stdout, stderr) = utils.shell_command(['git', 'merge-base', 'HEAD', 'refs/remotes/origin/master'])
+    (rc, stdout, stderr) = utils.shell_command(['git', 'merge-base', 'HEAD', 'refs/remotes/origin/lts-v2.8'])
     if rc:
         print("Git merge-base command failed. Cannot determine base commit.")
         sys.exit(rc)
diff --git a/script/static-checks/check-include-order.py b/script/static-checks/check-include-order.py
index 0953507..2232250 100755
--- a/script/static-checks/check-include-order.py
+++ b/script/static-checks/check-include-order.py
@@ -244,7 +244,7 @@
     parser.add_argument(
         "--from-ref",
         help="Base commit in patch mode (default: %(default)s)",
-        default="master",
+        default="lts-v2.8",
     )
     parser.add_argument(
         "--to-ref",
diff --git a/script/static-checks/static-checks-banned-apis.sh b/script/static-checks/static-checks-banned-apis.sh
index 0e55a23..6a999e9 100755
--- a/script/static-checks/static-checks-banned-apis.sh
+++ b/script/static-checks/static-checks-banned-apis.sh
@@ -13,7 +13,7 @@
   echo "# Check for banned APIs in the patch"
   TEST_CASE="Banned API check on patch(es)"
   "$CI_ROOT/script/static-checks/check-banned-api.py" --tree "$1" \
-      --patch --from-ref origin/master \
+      --patch --from-ref origin/lts-v2.8 \
       &> "$LOG_FILE"
 else
   echo "# Check for banned APIs in entire source tree"
diff --git a/script/static-checks/static-checks-coding-style-line-endings.sh b/script/static-checks/static-checks-coding-style-line-endings.sh
index 77985e0..bb0c4f4 100755
--- a/script/static-checks/static-checks-coding-style-line-endings.sh
+++ b/script/static-checks/static-checks-coding-style-line-endings.sh
@@ -15,7 +15,7 @@
 
 if [[ "$2" == "patch" ]]; then
     cd "$1"
-    parent=$(git merge-base HEAD refs/remotes/origin/master | head -1)
+    parent=$(git merge-base HEAD refs/remotes/origin/lts-v2.8 | head -1)
     git diff ${parent}..HEAD --no-ext-diff --unified=0 --exit-code -a --no-prefix | awk '/^\+/ && /\r$/' &> "$LOG_FILE"
 else
   # For all the source and doc files
diff --git a/script/static-checks/static-checks-include-order.sh b/script/static-checks/static-checks-include-order.sh
index 52e783c..ef5c670 100755
--- a/script/static-checks/static-checks-include-order.sh
+++ b/script/static-checks/static-checks-include-order.sh
@@ -13,7 +13,7 @@
   echo "# Check order of includes on the last patch"
   TEST_CASE="Order of includes on the last patch(es)"
   "$CI_ROOT/script/static-checks/check-include-order.py" --tree "$1" \
-      --patch --from-ref origin/master \
+      --patch --from-ref origin/lts-v2.8 \
       &> "$LOG_FILE"
 else
   echo "# Check order of includes of the entire source tree"