Skip to content

exception list for rat #4

exception list for rat

exception list for rat #4

Workflow file for this run

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: 17
- 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: Create exception list
run: |
cat << EOF >exception.lst
./exception.lst

Check failure on line 34 in .github/workflows/rat.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/rat.yaml

Invalid workflow file

You have an error in your yaml syntax on line 34
./CHANGES.md
./go.sum
./rat-report.txt
./apache-rat-0.16.1/**
./snap/snapcraft.yaml
./vedor/**
EOF
- name: Run RAT
run: |
java -jar apache-rat-0.16.1/apache-rat-0.16.1.jar -d . -E exception.lst > rat-report.txt
cat rat-report.txt
# Fail if unapproved licenses are found
grep -q 'Unknown Licenses' rat-report.txt && exit 1 || exit 0