Commit Graph

1382 Commits

Author SHA1 Message Date
Abhishek Arya
bcaa2e77f9 Lint fix. 2021-01-15 13:44:52 -05:00
Abhishek Arya
b5096bff45 Fix backslash. 2021-01-15 13:44:52 -05:00
Abhishek Arya
b278475af0 Fix CodeQL failure. 2021-01-15 13:44:52 -05:00
Abhishek Arya
5b7ddc55ab Add e2e test. 2021-01-15 13:44:52 -05:00
Abhishek Arya
dc8d1fecb9 Add packaging check. 2021-01-15 13:44:52 -05:00
naveen
c4c99cd676 feature - Included the e2e into the PR workflows
Validated the presence of the GITHU_AUTH_TOKEN variable presence before running the e2e.

Update the contributing doc with scopes of the personal access token.

Updated the workflow to include the e2e tests.
2021-01-13 13:04:22 -05:00
naveen
91bfea5c2f feat - Close stale issues
Close stale issues.
2021-01-12 18:19:10 -05:00
naveen
1d26654130 Document - Included instruction for GITHUB_AUTH_TOKEN
Included instruction that GITHUB_AUTH_TOKEN supports round robin with
multiple tokens.
2021-01-11 13:19:58 -05:00
Naveen
1700c3a348
feature - Pull request template (#127)
A standard pull request template
2021-01-08 11:36:05 -08:00
Naveen
b11fad8a81
feature - Included the status badge in README (#125)
Included the status badge for build, golanglint-ci and CodeQL.
2021-01-07 11:40:55 -08:00
Naveen
7b740ce470
fix - Handle nil structs in branch protection (#124)
Handle structs that could be nil while checking for branch protection.
2021-01-07 08:54:57 -08:00
Naveen
9d4e5c0731
feature - CODEOWNERS for github branch protection feature (#123)
Included the codeowners for enabling branch protection "Require review from Code Owners"

Signed-off-by: naveen <172697+naveensrinivasan@users.noreply.github.com>
2021-01-05 12:53:35 -08:00
Abhishek Arya
fcf0ac4be5
Merge pull request #119 from naveensrinivasan/feature/protected-branches
feature - Checks for branch protections
2021-01-05 10:44:05 -08:00
Abhishek Arya
3191c55963
Update README.md 2021-01-05 10:43:41 -08:00
Abhishek Arya
938b9f21d7
Merge branch 'main' into feature/protected-branches 2021-01-05 10:43:17 -08:00
Abhishek Arya
b506c6f4ff
Merge pull request #122 from ossf/b5
Remove releases from active check.
2021-01-05 10:31:48 -08:00
Abhishek Arya
650fe0a1c3
Update README.md 2021-01-05 10:31:18 -08:00
Abhishek Arya
3c94ffaccc Remove releases from active check. 2021-01-05 09:52:41 -08:00
naveen
5d84b86148 Merge branch 'main' into feature/protected-branches 2021-01-05 12:32:06 -05:00
Abhishek Arya
b86fae0b4d
Fix https://github.com/ossf/scorecard/issues/121 2021-01-05 09:28:21 -08:00
naveen
9ce57c0804 feature - Checks for branch protections
Implemented Branch protections checks.

Signed-off-by: naveen <172697+naveensrinivasan@users.noreply.github.com>
2021-01-05 12:27:50 -05:00
Naveen
15a1ba0536
feat - nonroot docker container (#114)
* feat - nonroot docker container

Changed the docker container to nonroot

* Feat - New Dockerfile for non-cron job

Created a new Dockerfile for non-cron job.
Moved the existing Dockerfile into cron folder for cron specific.

Signed-off-by: naveen <172697+naveensrinivasan@users.noreply.github.com>

* Fix - The Docker version information in the README

Updated the README to include docker version information required for
Dockerfile.

Signed-off-by: naveen <172697+naveensrinivasan@users.noreply.github.com>
2021-01-05 07:45:15 -06:00
Abhishek Arya
9e0388fa91
Merge pull request #118 from naveensrinivasan/feature/update-readme
feature - Update the CONTRIBUTING guidelines
2021-01-04 10:02:25 -08:00
naveen
c5c51b9977 feature - Update the CONTRIBUTING guidelines
* Updated the contributing guidelines with Environment Setup,
Contributing steps, How to build scorecard locally, What to do before
submitting a pull request and Where the CI Tests are configured.

Signed-off-by: naveen <172697+naveensrinivasan@users.noreply.github.com>
2021-01-04 12:13:07 -05:00
Naveen
b216a1e494
Feat - implemented goreleaser for releases (#117)
Implemented goreleaser for releasing the code to github.

Signed-off-by: naveen <172697+naveensrinivasan@users.noreply.github.com>
2021-01-04 07:36:56 -06:00
Naveen
f77da7783b
feat-e2e tests for signed tags and signed releases (#115)
Implemented e2e tests using ginkgo for validating signed tags and signed
releases.

ginkgo is utilized as a standard BDD testing framework in other
projects like kubebuilder.
2021-01-01 14:36:31 -06:00
Naveen
3df1191f7f
Create Dependabot config file (#116)
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-01-01 14:32:06 -06:00
Michael Scovetta
ddc82c6306
Add --show-details to the cron job. (#113)
This change will add a `details` section to the cron job output.
2020-12-28 15:16:44 -06:00
Abhishek Arya
329a4cf27b
Merge pull request #109 from moorereason/release-tagname
Use release tag name instead of name in log messages
2020-12-24 08:47:19 -08:00
Cameron Moore
88d521821c
Use release tag name instead of name in log messages
Use the release TagName instead of Name when reporting found releases.
An example of the problem using Name:

$ go run . --repo=github.com/magefile/mage --show-details --checks=Signed-Releases
Starting [Signed-Releases]
Finished [Signed-Releases]

RESULTS
-------
Signed-Releases: Fail 10
    release found: Colors, working directory, some better errors
    !! release Colors, working directory, some better errors has no signed artifacts
    release found: Modules and go1.13 Fixes
    !! release Modules and go1.13 Fixes has no signed artifacts
    release found: v1.8.0 - Papercuts and Bug Fixes
    !! release v1.8.0 - Papercuts and Bug Fixes has no signed artifacts
    release found: v1.7.1
    !! release v1.7.1 has no signed artifacts
    release found: v1.7.0 Mage Imports
    !! release v1.7.0 Mage Imports has no signed artifacts
    release found: v1.6.2 Bug Fixes
    !! release v1.6.2 Bug Fixes has no signed artifacts
    found signed artifacts for 0 out of 6 releases

With this commit:

Signed-Releases: Fail 10
    release found: v1.10.0
    !! release v1.10.0 has no signed artifacts
    release found: v1.9.0
    !! release v1.9.0 has no signed artifacts
    release found: v1.8.0
    !! release v1.8.0 has no signed artifacts
    release found: v1.7.1
    !! release v1.7.1 has no signed artifacts
    release found: v1.7.0
    !! release v1.7.0 has no signed artifacts
    release found: v1.6.2
    !! release v1.6.2 has no signed artifacts
    found signed artifacts for 0 out of 6 releases
2020-12-23 15:32:40 -06:00
Abhishek Arya
a239820b05
Merge pull request #108 from moorereason/iss95-ci-tests
Refactor CI-Tests to show negative results
2020-12-22 21:19:26 -08:00
Cameron Moore
39464a527b
Refactor CI-Tests to show negative results
Add negative check results to the CI-Tests output.

Assuming that a repo will only support one CI system, GithubStatuses and
GithubCheckRuns are merged into a single CITests function.  Since both
GithubStatuses and GithubCheckRuns were essentially validating the same
PRs, it makes more sense to keep all of that state together in a single
check.

Additionaly, a single check can reduce the number of API queries once we
detect the CI system in use.

Fixes #96
Updates #95
2020-12-22 20:32:14 -06:00
Abhishek Arya
7937da4449
Merge pull request #103 from naveensrinivasan/fix/golangrun-ci-issue
fix - golangci-lint issues
2020-12-22 14:03:51 -08:00
Abhishek Arya
9b1e28eb74
Merge pull request #106 from ossf/b3
Allow skipping scheme, fix regression.
2020-12-22 14:02:05 -08:00
Abhishek Arya
2d348a74bd
Merge pull request #105 from naveensrinivasan/feat/makefile
Feat - Implemented Makefile and actions for PR
2020-12-22 14:01:42 -08:00
Abhishek Arya
91780fd232 Allow skipping scheme, fix regression. 2020-12-22 13:56:17 -08:00
naveen
a56f707350 Feat - Implemented Makefile and actions for PR
Implemented Makefile and actions for PR and push to validate fmt, go mod
tidy , go build and go test
2020-12-22 16:51:24 -05:00
naveen
06f2616e7e fix - golangci-lint issues
Fixed the golangci-lint issues.
2020-12-22 16:20:10 -05:00
Abhishek Arya
c3086638fc
Merge pull request #102 from naveensrinivasan/fix/shellcheck
fix - shellcheck violations for cron.sh
2020-12-22 09:27:45 -08:00
naveen
3de6a1b1c0 fix - shellcheck violations for cron.sh
Fixed the shellcheck violations in cron.sh
2020-12-22 12:04:23 -05:00
Naveen
6549eccacc
Create codeql-analysis.yml (#101) 2020-12-22 07:27:02 -06:00
Abhishek Arya
f7cb4d70e6
Merge pull request #100 from naveensrinivasan/fix/http-path
fix - URL with trailing slash
2020-12-21 22:11:19 -08:00
naveen
4362368f94 Tests updated to include validation for parsing
Improved the tests to include validation for parsing the URL.
2020-12-21 22:30:41 -05:00
naveen
fd3a2a87b9 fix - URL with trailing slash
Fixes the URL with trailing slash.
Changed the URL parsing to net package implementation.
Included tests for URL parsing.
2020-12-21 15:16:32 -05:00
Abhishek Arya
6b80b78399
Merge pull request #98 from moorereason/iss95
Show negative results in some check details
2020-12-20 14:19:58 -08:00
Cameron Moore
ac55575713 Adjust details logging on a few checks
Log positive results in Pull-Requests and update log messages in
Signed-Releases and Signed-Tags.
2020-12-20 16:12:31 -06:00
Cameron Moore
348bedb0bf Show negative results in Signed-Releases details
Negative results logged with a "!!" prefix.

Updates #95

$ go run . --repo=github.com/gohugoio/hugo --show-details --checks=Signed-Releases
Starting [Signed-Releases]
Finished [Signed-Releases]

RESULTS
-------
Signed-Releases: Fail 10
    release found: v0.79.1
    !! release v0.79.1 has no signed artifacts
    release found: v0.79.0
    !! release v0.79.0 has no signed artifacts
    release found: v0.78.2
    !! release v0.78.2 has no signed artifacts
    release found: v0.78.1
    !! release v0.78.1 has no signed artifacts
    release found: v0.78.0
    !! release v0.78.0 has no signed artifacts
    release found: v0.77.0
    !! release v0.77.0 has no signed artifacts
    found signed artifacts for 0 of 6 releases
2020-12-20 14:32:16 -06:00
Cameron Moore
eb0d488bb2 Show negative results in Signed-Tags details
Negative results logged with a "!!" prefix.

Updates #95

$ go run . --repo=github.com/cilium/cilium --show-details --checks=Signed-Tags
Starting [Signed-Tags]
Finished [Signed-Tags]

RESULTS
-------
Signed-Tags: Fail 4
    verified tag found: v1.9.0-rc1, commit: a46b5c308779b00676bcbffe6847701984fb7ec7
    !! unverified tag found: v1.9.0-rc2, commit: 2ee8e4659ad4050154eb83008ba6434bddad44eb, reason: unsigned
    verified tag found: v1.9.0-rc3, commit: ee77e846a9b85e318d6d077c801e2615d5e7dbe3
    !! unverified tag found: v1.9.0, commit: 1cdd547dce26adb046d117494d559c64007365fd, reason: unsigned
    verified tag found: v1.9.1, commit: bb4abe1720cb56c6a5f74d0567665555ad8434f1
    found 3 of 5 verified tags
2020-12-20 14:28:45 -06:00
Cameron Moore
4ec34e94c5 Show negative results to Pull-Requests details
Negative results logged with a "!!" prefix.

Updates #95

$ go run . --repo=github.com/ossf/scorecard --show-details --checks=Pull-Requests
Starting [Pull-Requests]
Finished [Pull-Requests]

RESULTS
-------
Pull-Requests: Pass 9
    !! found commit without PR: 71dace54e3, committer: dlorenc
    found PRs for 29 out of 30 commits
2020-12-20 14:15:50 -06:00
Kim Lewandowski
199161753d
Merge pull request #94 from ossf/b3
Improve SAST check.
2020-12-15 10:30:25 -08:00