-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (28 loc) · 1013 Bytes
/
license-audit.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
name: Audit bugsnag-go dependency licenses
on: [push]
jobs:
license-audit:
runs-on: ubuntu-latest
defaults:
run:
working-directory: 'go/src/github.com/bugsnag/bugsnag-go-performance'
steps:
- uses: actions/checkout@v2
with:
path: 'go/src/github.com/bugsnag/bugsnag-go-performance' # relative to $GITHUB_WORKSPACE
- name: set GOPATH
run: |
bash -c 'echo "GOPATH=$GITHUB_WORKSPACE/go" >> $GITHUB_ENV'
- name: Fetch decisions.yml
run: curl https://raw.githubusercontent.com/bugsnag/license-audit/master/config/decision_files/global.yml -o decisions.yml
- uses: actions/setup-go@v2
with:
go-version: '1.16'
- name: install dependencies
run: go get -v -d ./...
- name: Run License Finder
run: >
docker run -v $PWD:/scan licensefinder/license_finder /bin/bash -lc "
cd /scan &&
license_finder --decisions-file decisions.yml --enabled-package-managers=gomodules
"