forked from actions/reusable-workflows
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (22 loc) · 838 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
# This workflow helps to check the statuses of cached dependencies used in action with the help of the Licensed tool.
# Learn more about Licensed at https://github.com/github/licensed
name: Licensed
on:
workflow_call:
jobs:
validate-cached-dependency-records:
runs-on: ubuntu-latest
name: Check licenses
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Install licensed tool
run: |
cd "$RUNNER_TEMP"
curl -Lfs -o licensed.tar.gz https://github.com/github/licensed/releases/download/3.9.0/licensed-3.9.0-linux-x64.tar.gz
sudo tar -xzf licensed.tar.gz
sudo mv licensed /usr/local/bin/licensed
- name: Check cached dependency records
run: licensed status