Skip to content

Add GH Action to check file headers #106

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 4 commits into from
Jul 21, 2022
Merged

Add GH Action to check file headers #106

merged 4 commits into from
Jul 21, 2022

Conversation

mocsharp
Copy link
Collaborator

@mocsharp mocsharp commented Jul 19, 2022

Description

Checks files for a valid Apache-2.0 header otherwise fail the build.
This change requires changing existing SPDX license headers to include full Apache-2.0 license text.
Adds nuget license scanning

Status

Ready

Types of changes

  • Non-breaking change (fix or new feature that would not break existing functionality).
  • Breaking change (fix or new feature that would cause existing functionality to change).
  • New tests added to cover the changes.
  • All tests passed locally.
  • Documentation comments included/updated.
  • User guide updated.
  • I have updated the changelog

@mocsharp mocsharp added the build Build & build workflow label Jul 19, 2022
@mocsharp mocsharp self-assigned this Jul 19, 2022
@codecov
Copy link

codecov bot commented Jul 19, 2022

Codecov Report

Merging #106 (416f95b) into develop (59b76b2) will increase coverage by 0.01504%.
The diff coverage is n/a.

Impacted file tree graph

@@                 Coverage Diff                 @@
##             develop        #106         +/-   ##
===================================================
+ Coverage   93.64375%   93.65879%   +0.01503%     
===================================================
  Files            222         222                 
  Lines          13294       13294                 
  Branches         702         702                 
===================================================
+ Hits           12449       12451          +2     
+ Misses           612         611          -1     
+ Partials         233         232          -1     
Flag Coverage Δ
unittests 93.65879% <ø> (+0.01503%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/Api/BaseApplicationEntity.cs 100.00000% <ø> (ø)
src/Api/LoggingDataDictionary.cs 66.66667% <ø> (ø)
src/Api/MonaiApplicationEntity.cs 100.00000% <ø> (ø)
src/Api/Rest/HealthStatusResponse.cs 100.00000% <ø> (ø)
src/Api/Rest/InferenceRequest.cs 100.00000% <ø> (ø)
src/Api/Rest/InferenceRequestDetails.cs 52.63158% <ø> (ø)
src/Api/Rest/InferenceRequestException.cs 25.00000% <ø> (ø)
src/Api/Storage/DicomFileStorageInfo.cs 100.00000% <ø> (ø)
src/Api/Storage/FhirFileStorageInfo.cs 88.88889% <ø> (ø)
src/Api/Storage/FileStorageInfo.cs 100.00000% <ø> (ø)
... and 213 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 59b76b2...416f95b. Read the comment docs.

@mocsharp mocsharp requested a review from RemakingEden July 19, 2022 15:15
@@ -99,6 +116,12 @@ jobs:

- name: Secret detection
uses: gitleaks/[email protected]

- name: Perform License Scanning
run: license_finder -r
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this need the allowlist adding? Also does it need a mention in the README how it can be added to?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call! I have updated CONTRIBUTING.md with information on license/package scanning!

@mocsharp mocsharp requested a review from RemakingEden July 20, 2022 18:35
@mocsharp mocsharp merged commit b9b2112 into develop Jul 21, 2022
@mocsharp mocsharp deleted the chang/check-headers branch July 21, 2022 15:58
mocsharp added a commit that referenced this pull request Aug 19, 2022
* Enable license finder & header scan
* Update files with full Apache-2.0 text
* Update CONTRIBUTING with license/package scanning info

Signed-off-by: Victor Chang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Build & build workflow
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants