From 12bcf38f422a04cfd13d7f7d5ebc636d93e49ec5 Mon Sep 17 00:00:00 2001 From: Evan Otero Date: Wed, 3 Sep 2025 18:36:22 -0400 Subject: [PATCH] Add license check --- .github/workflows/license.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/license.yml diff --git a/.github/workflows/license.yml b/.github/workflows/license.yml new file mode 100644 index 0000000..01c1110 --- /dev/null +++ b/.github/workflows/license.yml @@ -0,0 +1,24 @@ +name: License + +on: + push: + branches: ["main"] + pull_request: + branches: ["main"] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: 'Checkout Code' + uses: actions/checkout@v4 + + - name: Set up Go ${{matrix.go-version}} + uses: actions/setup-go@v5 + with: + go-version: ${{matrix.go-version}} + + - name: 'Validate License Headers' + # NOTE: Keep in sync with .hooks/addlicense + run: go run github.com/google/addlicense@v1.1.1 -check -s=only -ignore='bin/**' -ignore='**/.terraform.lock.hcl' -ignore='definitions/**' ** \ No newline at end of file