Skip to content

Commit

Permalink
chore: add license validator gha check
Browse files Browse the repository at this point in the history
Signed-off-by: Zoran Zorica <[email protected]>
  • Loading branch information
zzorica committed Apr 2, 2024
1 parent 838ee8a commit a615187
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/license_check_pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: '[PR] License Check'
on:
pull_request:
branches:
- main

permissions:
contents: write
pull-requests: write

jobs:
license-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Check License Header
uses: apache/skywalking-eyes/header@main
with:
token: ${{ github.token }}
mode: 'check'
13 changes: 13 additions & 0 deletions .licenserc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
header:
license:
spdx-id: Apache-2.0
copyright-owner: Daytona Platforms Inc.
content: |
Copyright 2024 Daytona Platforms Inc.
SPDX-License-Identifier: Apache-2.0
paths:
- "**/*.go"
- "**/*.sh"

comment: on-failure

0 comments on commit a615187

Please sign in to comment.