Skip to content
datreeio

GitHub Action

validate-license-action

v1.0.0 Latest version

validate-license-action

datreeio

validate-license-action

Action to validate that a repo contains a license of one of the allowed types

Installation

Copy and paste the following snippet into your .yml file.

              

- name: validate-license-action

uses: datreeio/validate-license-action@v1.0.0

Learn more about this action in datreeio/validate-license-action

Choose a version

validate-license-action

Validate a license file is one of the allowed licenses

Example Usage:

Use on a pull request event to make sure the repo has a valid license.


workflow "License validation flow" {
  on = "pull_request"
  resolves = ["validate license"]
}

action "validate license" {
  uses = "datreeio/validate-license-action@master"
  args = ["MIT,ISC"]
}

Future work to be done:

  1. Support getting license from file
  2. Support custom license file name
  3. Support * allowed license
  4. Support checking the source branch and not only the master