scorecard/CONTRIBUTING.md
Abhishek Arya 81eab9d2d8
Add license header and code of conduct files. (#34)
* Add license header and code of conduct files.

* Fill missing field.
2020-10-26 15:22:13 -05:00

1.6 KiB

Contributing to Security Scorecards!

Thank you for contributing your time and expertise to the Security Scorecards project. This document describes the contribution guidelines for the project.

Note: Before you start contributing, you must read and abide by our Code of Conduct.

Contributing code

Getting started

  1. Create a GitHub account
  2. Create a personal access token
  3. Set up your development environment

Then you can iterate.

Environment Setup

You must install these tools:

  1. git: For source control

  2. go: The language Tekton Pipelines is built in. You need go version v1.15 or higher.

Iterating

You can build the project with:

go build .

You can also use go run to iterate without a separate rebuild step:

go run . --repo=<repo>

You can run tests with:

go test .

Adding New Checks

Each check is currently just a function of type CheckFn. The signature is:

type CheckFn func(c.Checker) CheckResult

Checks are registered in an init function:

	AllChecks = append(AllChecks, NamedCheck{
		Name: "Code-Review",
		Fn:   DoesCodeReview,
	})

Currently only one set of checks can be run. In the future, we'll allow declaring multiple suites and configuring which checks get run.