forked from liblouis/liblouis
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (34 loc) · 1.33 KB
/
check-table-license.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Check the license of the tables
on:
workflow_dispatch:
push:
branches: [ master ]
paths:
- 'tables/*'
pull_request:
branches: [ master ]
permissions: # added using https://github.com/step-security/secure-workflows
contents: read
jobs:
check-licenses:
name: Check the license of the tables
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install dependencies
run: sudo apt-get update -qq && sudo apt-get install -y licensecheck
- name: Check licenses
# we check all tables for a license header. If any of the
# licenses is not LGPL-2.1+ or LGPL-3+ we flag a problem
run: |
test -z "$(licensecheck --check='\.(ctb|utb|cti|uti|dis)' --deb-fmt --machine tables/* | grep -Ev '(LGPL-2.1+|LGPL-3+)' | tee unknown_licenses.txt)"
- name: Store the list of files with unknown licenses
if: ${{ failure() }}
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
with:
name: unknown_licenses.txt
path: unknown_licenses.txt