Skip to content

Commit

Permalink
feat: implement action for license checkers
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Dec 30, 2024
1 parent 53a0029 commit faa9e9f
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions check-licenses/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: 'License checker and lister'
description: 'List and check licenses'
input:
token:
description: Personal access token
required: false
default: ${{ github.token }}

runs:
using: "composite"
steps:
- uses: actions/checkout@v3
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2
token: ${{ inputs.token }}
- uses: actions/setup-go@v3
with:
go-version: "1.22"
- uses: actions/setup-node@v2
with:
node-version: "18"
- name: Install license scanner
run: curl https://raw.githubusercontent.com/ory/ci/master/licenses/install | sh
shell: bash
- name: List and write licenses
run: |
mkdir -p .reports
.bin/list-licenses > .reports/dep-licenses.csv
shell: bash
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
- name: Commit Milestone Documentation
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
uses: EndBug/[email protected]
with:
message: "autogen(docs): update milestone document"
author_name: aeneasr
author_email: "[email protected]"
- name: Check licenses
run: .bin/licenses
shell: bash
<

0 comments on commit faa9e9f

Please sign in to comment.