Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/rat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,20 @@ jobs:
# off the report so contributors get the offending file list, not a
# Java stack trace. --input-exclude-parsed-scm GIT honours
# .gitignore; --input-exclude-std GIT/HIDDEN_DIR skips VCS metadata.
# --input-include '**/.gitignore' overrides those exclusions for the
# tracked .gitignore files themselves (parsed-scm GIT otherwise
# self-excludes the ignore files), so RAT enforces the ASF header
# that tools/dev/add-license-headers.py stamps into them. (.git/ is
# still skipped as a hidden dir; .apache-magpie-overrides/.gitignore
# stays excluded under its hidden dir.)
jar="${RUNNER_TEMP}/apache-rat-${RAT_VERSION}/apache-rat-${RAT_VERSION}.jar"
report="${RUNNER_TEMP}/rat-report.txt"
stderr_log="${RUNNER_TEMP}/rat-stderr.log"
java -jar "${jar}" \
--input-exclude-std GIT HIDDEN_DIR \
--input-exclude-parsed-scm GIT \
--input-exclude-file .rat-excludes \
--input-include '**/.gitignore' \
--output-style unapproved-licenses \
--output-file "${report}" \
. 2>"${stderr_log}" && rc=0 || rc=$?
Expand Down