Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions .github/workflows/license-checker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Copyright (c) 2025 Dell Inc., or its subsidiaries. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0

name: Weekly License Header Check
Comment thread
shaynafinocchiaro marked this conversation as resolved.

on:
workflow_call:
inputs:
file-exclusions-list:
Comment thread
shaynafinocchiaro marked this conversation as resolved.
description: "Files or folders to exclude from license header checks"
required: false
type: string
jobs:
license-check:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5

- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.CSM_GPG_PRIVATE_KEY }}
git_user_signingkey: true
git_commit_gpgsign: true
git_tag_gpgsign: true
git_config_global: true

- name: Run License Header Checker
uses: dell/common-github-actions/license-checker@main
with:
autofix: true
exclude-files: ${{ inputs.file-exclusions-list }}

- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: autofix/license-header
commit-message: "License header autofix"
title: "Fix license header inconsistencies"
body: |
This PR standardizes license headers across applicable files by adding missing licenses and fixing formatting issues.
Auto-generated by [common-github-actions](https://github.com/dell/common-github-actions)
sign-commits: true
delete-branch: false
9 changes: 9 additions & 0 deletions license-checker/action.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# Copyright (c) 2025 Dell Inc., or its subsidiaries. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0

name: "License Header Checker"
description: "Checks for license header"

Expand All @@ -14,3 +22,4 @@ runs:
image: "Dockerfile"
args:
- ${{ inputs.autofix }}
- ${{ inputs.exclude-files }}