This is an automated email from the ASF dual-hosted git repository.
kiranchavala pushed a commit to branch main
in repository
https://gitbox.apache.org/repos/asf/cloudstack-terraform-provider.git
The following commit(s) were added to refs/heads/main by this push:
new 86fb0e4 Upgrade Apache RAT to version 0.17 (#254)
86fb0e4 is described below
commit 86fb0e4c15edbd32467756a0a5f45d50bd6b1dd3
Author: dahn <[email protected]>
AuthorDate: Tue Oct 21 10:39:58 2025 +0200
Upgrade Apache RAT to version 0.17 (#254)
* Upgrade Apache RAT to version 0.17
* Update RAT version in workflow configuration
* update excludes file
* proper regular expression
---------
Co-authored-by: Daan Hoogland <[email protected]>
---
.github/workflows/rat.yaml | 8 ++++----
.rat-excludes | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/.github/workflows/rat.yaml b/.github/workflows/rat.yaml
index 76462d5..35cd44f 100644
--- a/.github/workflows/rat.yaml
+++ b/.github/workflows/rat.yaml
@@ -25,12 +25,12 @@ jobs:
- 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
+ curl -L -O
https://downloads.apache.org/creadur/apache-rat-0.17/apache-rat-0.17-bin.tar.gz
+ tar -xzf apache-rat-0.17-bin.tar.gz
- name: Run RAT
run: |
- java -jar apache-rat-0.16.1/apache-rat-0.16.1.jar -d . -E
.rat-excludes > rat-report.txt
+ java -jar apache-rat-0.17/apache-rat-0.17.jar -d . -E .rat-excludes
> rat-report.txt
cat rat-report.txt
# Fail if unapproved licenses are found
- grep -qe '^0 Unknown Licenses' rat-report.txt && exit 0 || exit 1
+ grep -qe '^\s*Unapproved:\s*0\s*A count of unapproved licenses.$'
rat-report.txt && exit 0 || exit 1
diff --git a/.rat-excludes b/.rat-excludes
index c2e2360..e892847 100644
--- a/.rat-excludes
+++ b/.rat-excludes
@@ -2,7 +2,7 @@ CHANGELOG.md
CONTRIBUTING.md
go.sum
rat-report.txt
-apache-rat-0.16.1
+apache-rat-0.17
.gitignore
.rat-excludes
.terraform-registry