Skip to content

try LAWA token on lawa check too #9

try LAWA token on lawa check too

try LAWA token on lawa check too #9

Workflow file for this run

name: License Check
on:
push:
branches:
- tsi-2537-license-check
jobs:
lawa:
name: lawa
runs-on: ubuntu-latest
steps:
- name: Checkout app
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.19
- name: Set up Ruby
uses: ruby/setup-ruby@0cde4689ba33c09f1b890c1725572ad96751a3fc # [email protected]
with:
ruby-version: 3.2.2
# env:
# BUNDLE_GITHUB__COM: x-access-token:${{ secrets.GITHUB_TOKEN }}
- name: Install compatible bundler version
run: gem install bundler:2.4.12
- name: Install lawa
run: |
touch Gemfile.lawa
echo "source 'https://rubygems.org'" >> Gemfile.lawa
echo -e "gem 'lawa', github: 'phrase/lawa'" >> Gemfile.lawa
bundle _2.4.12_ config unset deployment
BUNDLE_GEMFILE=Gemfile.lawa bundle _2.4.12_ install
env:
BUNDLE_GITHUB__COM: x-access-token:${{ secrets.GH_LAWA_ACCESS_TOKEN }}
- name: Run lawa
run: BUNDLE_GEMFILE=Gemfile.lawa bundle _2.4.12_ exec lawa --enabled-package-managers=gomodules --decisions-file=.license-decisions.yml
env:
GITHUB_TOKEN: ${{ secrets.GH_LAWA_ACCESS_TOKEN }}