Skip to content

Commit

Permalink
Merge branch 'main' of github.com:yusufpapurcu/go-license-checker
Browse files Browse the repository at this point in the history
  • Loading branch information
yusufpapurcu committed Dec 23, 2021
2 parents ddb03b9 + f8cb3b3 commit 8143b3c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,18 @@
# go-license-checker
# Let's Keep Open Source More Manageable
We want to keep open source more manageable and give right holders more space. If you using open source projects actively, don't you want to know more about them in law? Open source is inside everything. And we developers must be careful about using this open source resources.<br/><br/>
That's why I created this github action. **You can see is there any unlicensed package exist under your dependencies with this action.** Actually It's really easy to use. You can add this action to your workflow like this. (You must use vendor in latest release of this action)
```yaml
on: pull_request

jobs:
license-check:
runs-on: ubuntu-latest
name: License Check
steps:
- uses: actions/checkout@v2
- uses: yusufpapurcu/[email protected]
```
That's it. Just create new yaml file under `.github/workflow` and write this inside it. Also you can see all licenses as csv list in outputs.
## The Basics: What is an Open Source License?
The simplest explanation is that open source licenses are legal and binding contracts between the author and the user of a software component, declaring that the software can be used in commercial applications under specified conditions. The license is what turns code into an open source component. Without an open source license, the software component is unusable by others, even if it has been publicly posted on GitHub.<br/><br/>
Each open source license states what users are permitted do with the software components, their obligations, and what they cannot do as per the terms and conditions. This might sound pretty straight forward, but there are over 200 open source licenses out there so good luck keeping them all organized. Varying in complexity and requirements, it is up to organizations to choose which licenses are most compatible with their policies to ensure that they remain compliant.
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: 'Go License Checker'
author: 'yusufpapurcu'
description: 'Check licenses in your go package'
branding:
icon: file-text
color: green
runs:
using: "composite"
steps:
Expand Down

0 comments on commit 8143b3c

Please sign in to comment.