-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into add_linter_readme
Signed-off-by: Andrew Pollock <[email protected]>
- Loading branch information
Showing
11 changed files
with
11,661 additions
and
66 deletions.
There are no files selected for viewing
This file contains 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,16 @@ | ||
# EditorConfig helps developers define and maintain consistent | ||
# coding styles between different editors and IDEs | ||
# editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.go] | ||
indent_style = tab |
This file contains 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
This file contains 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,3 @@ | ||
module github.com/ossf/osv-schema/bindings/go | ||
|
||
go 1.22.7 |
This file contains 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,78 @@ | ||
package osvschema | ||
|
||
type Ecosystem string | ||
|
||
const ( | ||
EcosystemAlmaLinux Ecosystem = "AlmaLinux" | ||
EcosystemAlpine Ecosystem = "Alpine" | ||
EcosystemAndroid Ecosystem = "Android" | ||
EcosystemBioconductor Ecosystem = "Bioconductor" | ||
EcosystemBitnami Ecosystem = "Bitnami" | ||
EcosystemConanCenter Ecosystem = "ConanCenter" | ||
EcosystemCRAN Ecosystem = "CRAN" | ||
EcosystemCratesIO Ecosystem = "crates.io" | ||
EcosystemDebian Ecosystem = "Debian" | ||
EcosystemGitHubActions Ecosystem = "GitHub Actions" | ||
EcosystemGo Ecosystem = "Go" | ||
EcosystemHex Ecosystem = "Hex" | ||
EcosystemLinux Ecosystem = "Linux" | ||
EcosystemMaven Ecosystem = "Maven" | ||
EcosystemNPM Ecosystem = "npm" | ||
EcosystemNuGet Ecosystem = "NuGet" | ||
EcosystemOSSFuzz Ecosystem = "OSS-Fuzz" | ||
EcosystemPackagist Ecosystem = "Packagist" | ||
EcosystemPhotonOS Ecosystem = "Photon OS" | ||
EcosystemPub Ecosystem = "Pub" | ||
EcosystemPyPI Ecosystem = "PyPI" | ||
EcosystemRedHat Ecosystem = "Red Hat" | ||
EcosystemRockyLinux Ecosystem = "Rocky Linux" | ||
EcosystemRubyGems Ecosystem = "RubyGems" | ||
EcosystemSwiftURL Ecosystem = "SwiftURL" | ||
EcosystemUbuntu Ecosystem = "Ubuntu" | ||
) | ||
|
||
type SeverityType string | ||
|
||
const ( | ||
SeverityCVSSV2 SeverityType = "CVSS_V2" | ||
SeverityCVSSV3 SeverityType = "CVSS_V3" | ||
SeverityCVSSV4 SeverityType = "CVSS_V4" | ||
) | ||
|
||
type RangeType string | ||
|
||
const ( | ||
RangeSemVer RangeType = "SEMVER" | ||
RangeEcosystem RangeType = "ECOSYSTEM" | ||
RangeGit RangeType = "GIT" | ||
) | ||
|
||
type ReferenceType string | ||
|
||
const ( | ||
ReferenceAdvisory ReferenceType = "ADVISORY" | ||
ReferenceArticle ReferenceType = "ARTICLE" | ||
ReferenceDetection ReferenceType = "DETECTION" | ||
ReferenceDiscussion ReferenceType = "DISCUSSION" | ||
ReferenceReport ReferenceType = "REPORT" | ||
ReferenceFix ReferenceType = "FIX" | ||
ReferenceIntroduced ReferenceType = "INTRODUCED" | ||
ReferencePackage ReferenceType = "PACKAGE" | ||
ReferenceEvidence ReferenceType = "EVIDENCE" | ||
ReferenceWeb ReferenceType = "WEB" | ||
) | ||
|
||
type CreditType string | ||
|
||
const ( | ||
CreditFinder CreditType = "FINDER" | ||
CreditReporter CreditType = "REPORTER" | ||
CreditAnalyst CreditType = "ANALYST" | ||
CreditCoordinator CreditType = "COORDINATOR" | ||
CreditRemediationDeveloper CreditType = "REMEDIATION_DEVELOPER" //nolint:gosec | ||
CreditRemediationReviewer CreditType = "REMEDIATION_REVIEWER" //nolint:gosec | ||
CreditRemediationVerifier CreditType = "REMEDIATION_VERIFIER" //nolint:gosec | ||
CreditTool CreditType = "TOOL" | ||
CreditSponsor CreditType = "SPONSOR" | ||
CreditOther CreditType = "OTHER" | ||
) |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.