This is an automated email from the ASF dual-hosted git repository.

dahn pushed a commit to branch rat-checks
in repository https://gitbox.apache.org/repos/asf/cloudstack-cloudmonkey.git


The following commit(s) were added to refs/heads/rat-checks by this push:
     new dc608bf  initial gha
dc608bf is described below

commit dc608bfa6c7170e0405573787d08a4a23bb41a39
Author: Daan Hoogland <[email protected]>
AuthorDate: Wed Aug 6 14:40:51 2025 +0200

    initial gha
---
 .github/workflows/rat.yaml | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/.github/workflows/rat.yaml b/.github/workflows/rat.yaml
new file mode 100644
index 0000000..fc54069
--- /dev/null
+++ b/.github/workflows/rat.yaml
@@ -0,0 +1,36 @@
+name: RAT Check
+
+on:
+  push:
+    branches:
+      - main
+  pull_request:
+    branches:
+      - '**'
+
+jobs:
+  rat:
+    name: Apache RAT Check
+    runs-on: ubuntu-latest
+
+    steps:
+      - name: Checkout repository
+        uses: actions/checkout@v4
+
+      - name: Set up Java
+        uses: actions/setup-java@v4
+        with:
+          distribution: temurin
+          java-version: 11
+
+      - name: Download Apache RAT
+        run: |
+          curl -L -O 
https://downloads.apache.org/creadur/apache-rat-0.16.1/apache-rat-0.16.1-bin.tar.gz
+          tar -xzf apache-rat-0.16.1-bin.tar.gz
+
+      - name: Run RAT
+        run: |
+          java -jar apache-rat-0.16.1.jar -d . -e vendor > rat-report.txt
+          cat rat-report.txt
+          # Fail if unapproved licenses are found
+          grep -q 'Unknown Licenses' rat-report.txt && exit 1 || exit 0
\ No newline at end of file

Reply via email to