Skip to content

Commit 89b628c

Browse files
authored
ci(security-enhancement): add MIT license and setup dependency review (#33)
1 parent 2a0569a commit 89b628c

File tree

4 files changed

+44
-27
lines changed

4 files changed

+44
-27
lines changed

.editorconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,8 @@ dotnet_diagnostic.S1168.severity = none
161161
dotnet_diagnostic.CA1707.severity = none
162162
# CA1822: Mark members as static
163163
dotnet_diagnostic.CA1822.severity = none
164+
# CA1507: Use nameof in place of string literal
165+
dotnet_diagnostic.CA1507.severity = none
164166
# CA1305: Specify IFormatProvider
165167
dotnet_diagnostic.CA1305.severity = none
166168
# CA1309: Use ordinal string comparison
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Dependency Review Action
2+
#
3+
# This Action will scan dependency manifest files that change as part of a Pull Request, surfacing known-vulnerable versions of the packages declared or updated in the PR. Once installed, if the workflow run is marked as required, PRs introducing known-vulnerable packages will be blocked from merging.
4+
#
5+
# Source repository: https://github.com/actions/dependency-review-action
6+
# Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement
7+
name: 'Dependency Review'
8+
on: [pull_request]
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
dependency-review:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: 'Checkout Repository'
18+
uses: actions/checkout@v3
19+
- name: 'Dependency Review'
20+
uses: actions/dependency-review-action@v2

LICENSE

Lines changed: 21 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,21 @@
1-
APIMATIC REFERENCE SOURCE LICENSE
2-
3-
This license governs the use of the accompanying software. If you use the software, you accept this license. If you do not accept the license, do not use the software.
4-
5-
1. Definitions
6-
The terms "reproduce," "reproduction" and "distribution" have the same meaning here as under U.S. copyright law.
7-
8-
"You" means the licensee of the software.
9-
10-
"Your company" means the company you worked for when you downloaded the software.
11-
12-
"Reference use" means the use of the software within your company as a reference, in read-only form, for the sole purposes of debugging your products, maintaining your products, or enhancing the interoperability of your products with the software, and specifically excludes the right to distribute the software outside of your company.
13-
14-
"Licensed patents" means any Licensor patent claims which read directly on the software as distributed by the Licensor under this license.
15-
16-
2. Grant of Rights
17-
(A) Copyright Grant- Subject to the terms of this license, the Licensor grants you a non-transferable, non-exclusive, worldwide, royalty-free copyright license to reproduce the software for reference use.
18-
19-
(B) Patent Grant- Subject to the terms of this license, the Licensor grants you a non-transferable, non-exclusive, worldwide, royalty-free patent license under licensed patents for reference use.
20-
21-
3. Limitations
22-
(A) No Trademark License- This license does not grant you any rights to use the Licensor's name, logo, or trademarks.
23-
24-
(B) If you begin patent litigation against the Licensor over patents that you think may apply to the software (including a cross-claim or counterclaim in a lawsuit), your license to the software ends automatically.
25-
26-
(C) The software is licensed "as-is." You bear the risk of using it. The Licensor gives no express warranties, guarantees or conditions. You may have additional consumer rights under your local laws which this license cannot change. To the extent permitted under your local laws, the Licensor excludes the implied warranties of merchantability, fitness for a particular purpose and non-infringement.
1+
MIT License
2+
3+
Copyright (c) 2023 APIMatic Ltd
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@ This project contains core logic and the utilities for the APIMatic's C# SDK
3636
[coverage-url]: https://codeclimate.com/github/apimatic/core-lib-csharp/test_coverage
3737
[maintainability-badge]: https://api.codeclimate.com/v1/badges/d613a5f73f605369e745/maintainability
3838
[maintainability-url]: https://codeclimate.com/github/apimatic/core-lib-csharp/maintainability
39-
[license-badge]: https://img.shields.io/badge/licence-APIMATIC-blue
39+
[license-badge]: https://img.shields.io/badge/licence-MIT-blue
4040
[license-url]: LICENSE

0 commit comments

Comments
 (0)