-
Notifications
You must be signed in to change notification settings - Fork 53
44 lines (37 loc) · 1.34 KB
/
licenses.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
42
43
44
name: Licenses
on:
push:
branches:
- 'master'
paths:
- 'yarn.lock'
- 'package.json'
- 'packages/*/yarn.lock'
- 'packages/*/package.json'
env:
REGISTRY: ghcr.io
permissions:
contents: read
packages: read
jobs:
licnse-checker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Pull License Checker image
run: docker pull --quiet '${{ env.REGISTRY }}/${{ secrets.LICENSE_CHECKER_IMAGE }}'
- name: Run License Checker
env:
LICENSE_CHECKER_IMAGE: ${{ secrets.LICENSE_CHECKER_IMAGE }}
SERVICE_DICTIONARY_API_KEY: ${{ secrets.SD_API_KEY }}
SERVICE_DICTIONARY_CHECK_APP_ENABLED: 'false'
SERVICE_DICTIONARY_UPLOAD_LICENSES: ${{ github.ref == 'refs/heads/master' }}
SERVICE_DICTIONARY_URL: ${{ secrets.SD_URL }}
run: scripts/license-checker.docker.sh