Update to allow hackathon to be demonstrated #368
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: license audit | |
on: [push, pull_request] | |
jobs: | |
license-audit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: fetch decisions.yml | |
run: | | |
curl https://raw.githubusercontent.com/bugsnag/license-audit/master/config/decision_files/global.yml -o config/decisions.yml | |
curl https://raw.githubusercontent.com/bugsnag/license-audit/master/config/decision_files/bugsnag-ruby.yml >> config/decisions.yml | |
- name: run license finder | |
# for some reason license finder doesn't run without a login shell (-l) | |
run: > | |
docker run -v $PWD:/scan licensefinder/license_finder /bin/bash -lc " | |
cd /scan && | |
bundle install && | |
license_finder --decisions-file config/decisions.yml | |
" |