Skip to content

Commit

Permalink
Add license plate workflow
Browse files Browse the repository at this point in the history
This commit adds a workflow to check for the license boilerplates
using chainguard-dev/action/boilerplates

Signed-off-by: Adolfo García Veytia (puerco) <[email protected]>
  • Loading branch information
puerco committed Oct 17, 2024
1 parent 94939ca commit 2c73e99
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/boilerplates.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# SPDX-FileCopyrightText: Copyright 2024 The Minder Authors
# SPDX-License-Identifier: Apache-2.0

name: Boilerplate

on:
pull_request:
branches: [ 'main', 'release-*' ]

jobs:

check:
name: Boilerplate Check
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
extension:
- go
- sh
- yaml
- yml
- html
- css

include:
- extension: go
language: Go
- extension: sh
language: Bash
- extension: yaml
language: YAML
- extension: yml
language: YAML
- extension: html
language: HTML
- extension: css
language: CSS
- extension: sql
language: SQL

steps:
- name: Check out code
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1

- uses: chainguard-dev/actions/boilerplate@main
with:
extension: ${{ matrix.extension }}
language: ${{ matrix.language }}
exclude: "/mock/|internal/db/|client.gen.go|.pb(.gw)?.go|docs/docs/"

0 comments on commit 2c73e99

Please sign in to comment.