-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (45 loc) · 1.45 KB
/
license.yml
File metadata and controls
54 lines (45 loc) · 1.45 KB
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
45
46
47
48
49
50
51
52
53
54
name: License Compliance
permissions:
contents: read
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
license-gradle:
name: Gradle (license)
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # ratchet:actions/checkout@v6
- uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # ratchet:actions/setup-java@v5
with:
distribution: temurin
java-version: 25
cache: gradle
- name: Check licenses
run: ./gradlew checkLicense -PskipFrontend
- name: Upload license report
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # ratchet:actions/upload-artifact@v7
with:
name: gradle-license-report
path: "**/build/reports/dependency-license/"
retention-days: 30
license-npm:
name: npm (license)
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # ratchet:actions/checkout@v6
- name: Install dependencies
run: npm ci --prefer-offline
working-directory: git-proxy-java-dashboard/frontend
- name: Check licenses
run: npm run license-check
working-directory: git-proxy-java-dashboard/frontend