-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (43 loc) · 954 Bytes
/
licensed.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
45
46
47
48
49
50
51
# SPDX-License-Identifier: MIT
name: licensed
on:
push:
branches:
- main
- feature/**
paths:
- .github/workflows/licensed.yml
- .licensed.yml
- .licenses/**
- go.mod
- go.sum
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
licensed:
name: Check licenses
permissions: {}
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ruby
- name: Setup Licensed
uses: github/setup-licensed@v1
with:
github_token: '${{ secrets.GITHUB_TOKEN }}'
version: '4.x'
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: './go.mod'
- name: Download dependencies
run: |
go mod download -x
- name: Check licensed status
run: |
licensed status