From 49b4b414cec260d85063d25d00692f4dfda8225c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mladen=20Jablanovi=C4=87?= Date: Fri, 9 Aug 2024 16:56:51 +0200 Subject: [PATCH] build(php): Add license check [TSI-2630] (#668) --- .github/workflows/test-php.yml | 7 +++++++ clients/php/.license-decisions.yml | 4 ++++ 2 files changed, 11 insertions(+) create mode 100644 clients/php/.license-decisions.yml diff --git a/.github/workflows/test-php.yml b/.github/workflows/test-php.yml index 19d47158..55837e9c 100644 --- a/.github/workflows/test-php.yml +++ b/.github/workflows/test-php.yml @@ -18,3 +18,10 @@ jobs: php_version: '7.4' version: '7.4' configuration: ./clients/php/phpunit.xml.dist + - name: License check + uses: phrase/actions/lawa-ci@v1 + with: + github-token: ${{ secrets.GH_LAWA_ACCESS_TOKEN }} + decisions-file: .license-decisions.yml + working-directory: clients/php + package-managers: composer diff --git a/clients/php/.license-decisions.yml b/clients/php/.license-decisions.yml new file mode 100644 index 00000000..34f0d1a8 --- /dev/null +++ b/clients/php/.license-decisions.yml @@ -0,0 +1,4 @@ +--- +- - :inherit_from + - url: https://raw.githubusercontent.com/phrase/lawa/master/config/license-decisions.yml + authorization: token $GITHUB_TOKEN