-
Notifications
You must be signed in to change notification settings - Fork 20
Updated header for the license header automated PRs #188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
d6ab3c9
Updated header for the license header PR
harishp8889 5f9be57
updated input variable
harishp8889 9a2a6bd
Merge branch 'main' into usr/harishp/license-pr-fix
riya-kaushal7997 a74d0c9
Fixed review comments
harishp8889 11f7f4b
Updated missing files exclusion in the action
harishp8889 86d82a2
Fixed review comments
harishp8889 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
|
|
||
| on: | ||
| workflow_call: | ||
| inputs: | ||
| file-exclusions-list: | ||
|
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 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.