From 76fa64498a06941a08eb645ed2e30b34dcdc87f4 Mon Sep 17 00:00:00 2001 From: YangJiaqi Date: Thu, 2 Mar 2023 21:22:16 +0800 Subject: [PATCH] add github token for license check comment (#2139) --- .github/workflows/ci.yml | 6 ------ .github/workflows/licence-checker.yml | 12 ++++++++++++ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fd8df7f9f9..9c78051f71 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -48,12 +48,6 @@ jobs: with: fetch-depth: 2 - - name: License check(RAT) - run: | - mvn apache-rat:check -ntp - find ./ -name rat.txt -print0 | xargs -0 -I file cat file > merged-rat.txt - grep "Binaries" merged-rat.txt -C 3 && cat merged-rat.txt - - name: Compile run: | mvn clean compile -U -Dmaven.javadoc.skip=true -ntp diff --git a/.github/workflows/licence-checker.yml b/.github/workflows/licence-checker.yml index 9e595c31c9..b28d1a81b4 100644 --- a/.github/workflows/licence-checker.yml +++ b/.github/workflows/licence-checker.yml @@ -19,4 +19,16 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: log: info + token: ${{ github.token }} config: .licenserc.yaml + + - uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'adopt' + + - name: License check(RAT) + run: | + mvn apache-rat:check -ntp + find ./ -name rat.txt -print0 | xargs -0 -I file cat file > merged-rat.txt + grep "Binaries" merged-rat.txt -C 3 && cat merged-rat.txt