Commit Graph

2597 Commits

Author SHA1 Message Date
Raghav Kaul
32b5963766
⚠️ Add projectclient to cli and cron, update runscorecard (#4096)
Signed-off-by: Raghav Kaul <raghavkaul+github@google.com>
2024-05-13 11:59:46 -04:00
dependabot[bot]
db720cc870
🌱 Bump google.golang.org/protobuf from 1.34.0 to 1.34.1 (#4092) 2024-05-10 21:21:27 +00:00
dependabot[bot]
c11d89bfe6
🌱 Bump distroless/base from 29da700 to e238d40 (#4064) 2024-05-10 19:42:53 +00:00
dependabot[bot]
5a59357658
🌱 Bump github.com/xanzy/go-gitlab from 0.103.0 to 0.105.0 (#4099) 2024-05-10 18:33:13 +00:00
dependabot[bot]
9e9de6ac06
🌱 Bump golang from 1.22.2 to 1.22.3 (#4098)
* 🌱 Bump golang from 1.22.2 to 1.22.3

Bumps golang from 1.22.2 to 1.22.3.

---
updated-dependencies:
- dependency-name: golang
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* bump the other 7 dockerfiles

Signed-off-by: Spencer Schrock <sschrock@google.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Spencer Schrock <sschrock@google.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Spencer Schrock <sschrock@google.com>
2024-05-10 18:08:39 +00:00
Spencer Schrock
7ce8609469
🐛 Support renamed gradle verification action and callers which pin to hash (#4097)
* Support renamed gradle verification action

From gradle/wrapper-validation-action's readme:
"As of v3 this action has been superceded by
gradle/actions/wrapper-validation"

Also support actions pinned to a hash.

Signed-off-by: Spencer Schrock <sschrock@google.com>

* remove unneeded dependency

Signed-off-by: Spencer Schrock <sschrock@google.com>

---------

Signed-off-by: Spencer Schrock <sschrock@google.com>
2024-05-09 18:27:34 +00:00
Raghav Kaul
f8422929cc
🌱 Add ProjectPackageClient interface and deps.dev default client (#3954)
* Add ProjectPackageClient interface and deps.dev default client

Signed-off-by: Raghav Kaul <raghavkaul+github@google.com>

* v4 -> v5

Signed-off-by: Raghav Kaul <raghavkaul+github@google.com>

* Move to internal

Signed-off-by: Raghav Kaul <raghavkaul+github@google.com>

* move internal to higher-level w/ shared root

Signed-off-by: Raghav Kaul <raghavkaul+github@google.com>

* update

Signed-off-by: Raghav Kaul <raghavkaul+github@google.com>

---------

Signed-off-by: Raghav Kaul <raghavkaul+github@google.com>
2024-05-08 16:56:36 -04:00
Spencer Schrock
c92efe9bb2
🌱 cron: don't write anything for projects without URL (#4095)
We still run into the 429 GCS responses due to the lower limits on the same file.
All of the projects without a repo_url are being mapped to the same
object and leading to rate limiting.

"Maximum rate of writes to the same object name: One write per second"
https://cloud.google.com/storage/quotas#objects

Signed-off-by: Spencer Schrock <sschrock@google.com>
2024-05-08 13:41:39 -07:00
Spencer Schrock
cc7132d631
🌱 implement basic rate limiting for best practices worker. (#4090)
We are getting connection reset requests from bestpractices.dev and 429
errors from our GCS bucket for too many writes. The GCS limit (1000 QPS)
is much higher, so just use the bestpractices.dev limit of 1 QPS.
https://github.com/coreinfrastructure/best-practices-badge/blob/main/docs/api.md

The construct was taken from https://go.dev/wiki/RateLimiting which "works well
for rates up to tens of operations per second."

Signed-off-by: Spencer Schrock <sschrock@google.com>
2024-05-08 19:07:43 +00:00
Raghav Kaul
256d5a3b50
🌱 Add script to set up probe boilerplate (#3948)
* Add script

Signed-off-by: Raghav Kaul <raghavkaul+github@google.com>

* script -> go

Signed-off-by: Raghav Kaul <raghavkaul+github@google.com>

* v4 -> v5

Signed-off-by: Raghav Kaul <raghavkaul+github@google.com>

* update

Signed-off-by: Raghav Kaul <raghavkaul+github@google.com>

* update

Signed-off-by: Raghav Kaul <raghavkaul+github@google.com>

---------

Signed-off-by: Raghav Kaul <raghavkaul+github@google.com>
2024-05-08 17:58:02 +00:00
dependabot[bot]
6b5cb27cd0
🌱 Bump cloud.google.com/go/pubsub from 1.37.0 to 1.38.0 (#4088) 2024-05-07 17:49:20 +00:00
dependabot[bot]
13c7254fd5
🌱 Bump golang.org/x/text from 0.14.0 to 0.15.0 (#4089) 2024-05-07 17:32:27 +00:00
dependabot[bot]
e6f5767190
🌱 Bump golang.org/x/oauth2 from 0.19.0 to 0.20.0 (#4087) 2024-05-07 17:20:00 +00:00
Spencer Schrock
250690511d
🐛 Code-Review: change phabricator regex to allow URLs (#4086)
The old regex used \w which only allowed [0-9A-Za-z_], however most
projects use full URLs with phabricator (e.g.
https://reviews.foo.org/D###). This led to errors parsing the revisions,
where "https" was seen as the revision, leading to an underreporting of
code review practices.

The new regex focuses on the D#### part and uses it as the revision.

Signed-off-by: Spencer Schrock <sschrock@google.com>
2024-05-07 09:51:39 -07:00
dependabot[bot]
81d239f19c
🌱 Bump actions/setup-go from 5.0.0 to 5.0.1 (#4083) 2024-05-06 21:15:59 +00:00
dependabot[bot]
f3859fcd73
🌱 Bump the github-actions group across 1 directory with 2 updates (#4085) 2024-05-06 20:59:35 +00:00
dependabot[bot]
233741b200
🌱 Bump google.golang.org/protobuf in /tools (#4084) 2024-05-06 20:41:29 +00:00
dependabot[bot]
cad20c5355
🌱 Bump cloud.google.com/go/bigquery from 1.60.0 to 1.61.0 (#4069) 2024-05-06 20:25:24 +00:00
dependabot[bot]
16a88c3ce5
🌱 Bump github.com/onsi/ginkgo/v2 in /tools (#4076)
Bumps [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo) from 2.17.1 to 2.17.2.
- [Release notes](https://github.com/onsi/ginkgo/releases)
- [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/ginkgo/compare/v2.17.1...v2.17.2)

---
updated-dependencies:
- dependency-name: github.com/onsi/ginkgo/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-06 13:04:32 -07:00
S. E. Elder
a788a3830d
🌱 Update Binary-Artifacts and License checks (#4079)
* replaced localRepoClient with mockRepoClient

Signed-off-by: seelder <seelder@ncsu.edu>

* Update binary_artifact_test.go to use scut

Updated the test to use scut. Updated the test data to use scut, including adding NumberOfInfo and NumberOfWarn for each test case

Signed-off-by: seelder <seelder@ncsu.edu>

* Update license_test to use gomock

First attempt at updating license_test to use gomock instead of localDir.

Note: localDir currently has a TODO for implementing ListLicenses.  It returns an UnsupportedFeatures error, which is then handled in checks/raw/license. This first attempt replicates that existing behavior.
Signed-off-by: seelder <seelder@ncsu.edu>

* Update license_test documentation

Clarified why the mock simply throws an error

Signed-off-by: seelder <seelder@ncsu.edu>

* Fixed linting error in license_test

Signed-off-by: seelder <seelder@ncsu.edu>

---------

Signed-off-by: seelder <seelder@ncsu.edu>
2024-05-03 14:50:50 -07:00
afmarcum
0e7a09b37e
📖 Remove survey (#4077)
Signed-off-by: afmarcum <138055109+afmarcum@users.noreply.github.com>
2024-05-03 10:46:46 -07:00
Spencer Schrock
b9c1f3fc7a
🐛 fix signed-releases lookback limit precedence (#4060)
* switch signed-releases lookback limit precedence

if the 6th release had no assets, the lookback limit exit condition was
being skipped. This led to scenarios where too many releases were being
considered by the Signed-Releases check.

https://github.com/ossf/scorecard/issues/4059

Signed-off-by: Spencer Schrock <sschrock@google.com>

* make exit condition stronger

any release after the lookback should be skipped

Signed-off-by: Spencer Schrock <sschrock@google.com>

---------

Signed-off-by: Spencer Schrock <sschrock@google.com>
2024-05-02 10:43:13 -07:00
dependabot[bot]
0616bf3a5e
🌱 Bump github.com/moby/buildkit from 0.13.1 to 0.13.2 (#4070)
Bumps [github.com/moby/buildkit](https://github.com/moby/buildkit) from 0.13.1 to 0.13.2.
- [Release notes](https://github.com/moby/buildkit/releases)
- [Commits](https://github.com/moby/buildkit/compare/v0.13.1...v0.13.2)

---
updated-dependencies:
- dependency-name: github.com/moby/buildkit
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-02 13:23:17 -04:00
dependabot[bot]
62aca9907c
🌱 Bump github.com/onsi/gomega from 1.33.0 to 1.33.1 (#4066) 2024-04-30 21:42:28 +00:00
dependabot[bot]
6147f367c4
🌱 Bump the github-actions group across 1 directory with 4 updates (#4067) 2024-04-30 21:18:01 +00:00
dependabot[bot]
58f0ed5ed3
🌱 Bump google.golang.org/protobuf from 1.33.0 to 1.34.0 (#4065) 2024-04-30 20:59:20 +00:00
Spencer Schrock
d4487dc774
🌱 Enable dependabot multi-directory updates (#4062)
* allowed shared updates across gomod directories

Signed-off-by: Spencer Schrock <sschrock@google.com>

* group docker directories

Signed-off-by: Spencer Schrock <sschrock@google.com>

---------

Signed-off-by: Spencer Schrock <sschrock@google.com>
2024-04-30 13:36:49 -07:00
Spencer Schrock
71aed951f9
allow probes to collect their own data from repo clients (#4052)
* introduce independent probe implementations

rather than rely on checks collecting raw data, independent probes
collect their own raw data using the underlying repo client present in
the check request.

Signed-off-by: Spencer Schrock <sschrock@google.com>

* add test

Signed-off-by: Spencer Schrock <sschrock@google.com>

---------

Signed-off-by: Spencer Schrock <sschrock@google.com>
2024-04-25 18:23:54 +00:00
Stephen Augustus
0ea86598f6
📖 governance: Adopt Scorecard project charter (#4054)
Signed-off-by: Stephen Augustus <foo@auggie.dev>
2024-04-25 10:47:54 -07:00
dependabot[bot]
a0efbf455b
🌱 Bump github.com/onsi/gomega from 1.32.0 to 1.33.0 (#4042) 2024-04-24 19:10:30 +00:00
dependabot[bot]
f9b43b72db
🌱 Bump github.com/xanzy/go-gitlab from 0.102.0 to 0.103.0 (#4043) 2024-04-24 18:57:03 +00:00
dependabot[bot]
eef39716ef
🌱 Bump github.com/google/osv-scanner from 1.7.1 to 1.7.2 (#4044) 2024-04-24 18:44:47 +00:00
dependabot[bot]
c69fcab521
🌱 Bump golang.org/x/net from 0.22.0 to 0.23.0 (#4045) 2024-04-24 18:32:27 +00:00
dependabot[bot]
43022835f2
🌱 Bump golang.org/x/net from 0.22.0 to 0.23.0 in /tools (#4046) 2024-04-24 18:13:06 +00:00
dependabot[bot]
db55585a49
🌱 Bump the github-actions group across 1 directory with 6 updates (#4051) 2024-04-24 17:59:20 +00:00
Spencer Schrock
252eee2f68
🌱 bump publishimage version (#4028)
* bump version

Signed-off-by: Spencer Schrock <sschrock@google.com>

* only publish images for tagged releases or candidates.

Signed-off-by: Spencer Schrock <sschrock@google.com>

---------

Signed-off-by: Spencer Schrock <sschrock@google.com>
2024-04-24 10:27:28 -07:00
Gabriela Gutierrez
8789bbbbfc
⚠️ Add initial Maintainers Annotation parsing (#3905)
* feat: Get maintainers annotation from repo

This commits adds functionality to read a scorecard.yml file from a repository and parse it to get the maintainers annotation. It introduces the concepts of exemptions, annotations, annotated checks, and annotation reasons.

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* feat: Hand off maintainers annotation for SARIF

Hnad off maintainers annotation to SARIF formatting so it can decide to skip or not skip checks when creating the output.

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* feat: If check is annotated, skip in SARIF output

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* feat: Add other annotation reasons

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* feat: Add options to show maintainers annotations in output

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* feat: Output maintainers annotations in JSON

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* fix: Remove unnecessary maintainers annotation param in SARIF

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* feat: Output maintainers annotations in string default result

This commit changes how data is appended to the table rows. Previously, we defined the table columns size and added information to each index. To avoid complicating the calculation of the index now that we are adding another optional column, the data is appended to the row as needed.

Also, the maintainers annotation was chosen to be displayed as last column to give space for Scorecard official reasoning and documentation to appear first.

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* feat: Ignore annotation if check has max score

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* doc: Add documentation for maintainers annotation

Introduce what flag should be used to show maintainers annotation and how to configure maintainers annotation for your repository.

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* refactor: A maintainers annotation obj can verify if a check is exempted

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* refactor: Get annotations function can be private

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* refactor: Find scorecard.yml file in the repository's root

Change to "GetFileContent" method since we're looking for a specific file instead of using "OnMatchingFileContentDo" method that looks files with a specific content.
This also removes the dependency from "checks/fileparser". This is necessary to move "IsCheckExempted" to checker.

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* fix: A check should know if it's exempted or not

Moving the verification "IsCheckExempted" from maintainers_annotation package to checker package. This way a check result will define, consulting maintainers annotation, if it is exempted or not.

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* fix: Maintainers annotation can only be used in experimental mode

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* fix: Ignore if scorecard.yml does not exist

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* fix: Remove unnecessary maintainers annotation param

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* docs: Move complete mantainers annotation doc to feature folder

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* fix: Error logs

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* refactor: Rename AnnotationReason to Reason

Avoid repetition in variable references.

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* refactor: Reason documentation

Redo reason documentation as a switch case to be called when necessary instead of defining a global map. Another reason to redo this logic as switch is that switch should be more performatic then instantiating a local map.

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* refactor: Rename ScorecardYml to ScorecardConfig

This is a better generic name to reference Scorecard configuration file and leave the file format for the implementation.

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* fix: Check name comparison

The EqualFold comparison is already case insensitive.

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* refactor: Rename maintainers annotation folder/file to config

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* refactor: Rename and simplify parsing the config

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* refactor: Check parses its reasons

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* fix: Is check exempted

Fix config struture renaming and collect all annotation reasons for a check. Don't stop in the first annotation that the check is exempted.

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* refactor: Rename maintainers annotation to annotations

Renaming flags, function params, docs and fixing config renamings.

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* refactor: Separate annotations content from config parsing

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* fix: Omit empty annotations in JSON results

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* refactor: Read config file content

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* refactor: JSON2 result options

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* refactor: String result options

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* test: Mock GetFileReader

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* test: Annotation on Binary-Artifacts check

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* feat: Validate annotated checks

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* test: Annotating all checks

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* feat: Validate annotated reasons

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* test: Annotating all reasons

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* test: Multiple annotations

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* test: Binary-Artifacts exempted for testing

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* test: Binary-Artifacts not exempted

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* test: No checks exempted

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* test: Exemption is outdated

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* test: Improve reasons error comparison

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* test: Multiple exemption reasons in a single annotation

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* test: Multiple exemption reasons across annotations

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* fix: cmd show annotations flag doc

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* test: Add show annotations flag

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* fix: Remove unnecessary function

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* test: Annotations string format

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* test: Annotations json format

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* fix: Linter fallthrough

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* fix: Linter imports

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* fix: Linter unnecessart struct type declaration

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* fix: Linter append combine

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* fix: Linter struct memory

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* fix: Linter improve error msg in run scorecard

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* fix: Linter dynamic errors

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* docs: Disable security alerts on SARIF output

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* docs: Redirect to configuration doc on main README

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* test: Invalid check in annotations

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* test: Invalid reason in annotations

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* test: Exempt check on SARIF output clears runs

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* test: Add check1 annotations json

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* fix: On parse error return empty config file not a "dirty" one

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* fix: On parse config error continue execution

We log the error to the user but continue execution with empty config.

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* fix: Merge conflics importing rules

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* fix: Readd is experimental enabled method

This method is necessary to validate if experimental feature is enabled so it can activate show annotations feature.

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* feat: Wrap config parse under experimental flag

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

* fix unit test by removing unused mock call

Signed-off-by: Spencer Schrock <sschrock@google.com>

---------

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>
2024-04-23 20:15:12 +00:00
Raghav Kaul
39b56e809b
📖 docs: update website (#4041)
Signed-off-by: Raghav Kaul <raghavkaul+github@google.com>
2024-04-18 16:36:01 -07:00
Case Wylie
39e968dceb
⚠️ errors in ErrXXX format (#4040)
Signed-off-by: Case Wylie <cmwylie19@defenseunicorns.com>
2024-04-17 22:49:12 -07:00
Spencer Schrock
0b9dfb656f
⚠️ Replace v4 module references with v5 (#4027)
Signed-off-by: Spencer Schrock <sschrock@google.com>
2024-04-12 14:51:50 -07:00
dependabot[bot]
f939ab1cb3
🌱 Bump golang.org/x/oauth2 from 0.18.0 to 0.19.0 (#4004) 2024-04-12 18:31:25 +00:00
dependabot[bot]
ce851945a0
🌱 Bump github.com/sigstore/cosign/v2 in /tools (#4022) 2024-04-12 18:19:04 +00:00
dependabot[bot]
d187f11e0f
🌱 Bump sigs.k8s.io/release-utils from 0.6.0 to 0.8.1 (#4015) 2024-04-12 18:07:00 +00:00
Spencer Schrock
d4c5b18151
⚠️ remove experimental gate from probe format (#4026)
* remove experimental gate from probe format

Also delete finding and structured results formats as they weren't used

Signed-off-by: Spencer Schrock <sschrock@google.com>

* rename method which writes probe format

Signed-off-by: Spencer Schrock <sschrock@google.com>

* remove unused code for linter

Signed-off-by: Spencer Schrock <sschrock@google.com>

---------

Signed-off-by: Spencer Schrock <sschrock@google.com>
2024-04-12 10:36:57 -07:00
Spencer Schrock
f4c3025998
🐛 Token-Permissions: use same text for read token details as write token details (#4025)
* use same text for read token details as write token details

This was an unintentional regression from v4.13.1

Signed-off-by: Spencer Schrock <sschrock@google.com>

* deal with linter warning

Signed-off-by: Spencer Schrock <sschrock@google.com>

---------

Signed-off-by: Spencer Schrock <sschrock@google.com>
2024-04-12 10:07:46 -07:00
Spencer Schrock
d8b26d974f
🐛 Signed-Releases: dont warn about signatures if provenance present (#4024)
* reduce number of findings to 1 per probe per release

having different findings for different release artifacts isnt how the
probe works and it makes the whole thing very noisy

Signed-off-by: Spencer Schrock <sschrock@google.com>

* dont log lack of signature if we have provenance

reduce test warn counts for cases where there is provenance but no signature

Signed-off-by: Spencer Schrock <sschrock@google.com>

---------

Signed-off-by: Spencer Schrock <sschrock@google.com>
2024-04-12 09:47:10 -07:00
Felix Hoeborn
21d53ce28c
Added probe for permissive licenses (#3838)
* Added check for permissive licenses

Signed-off-by: Felix Hoeborn <f.hoeborn@gmail.com>

* Regenerated docs and added more permissive licenses to check

Signed-off-by: Felix Hoeborn <f.hoeborn@gmail.com>

* Added e2e tests

Signed-off-by: Felix Hoeborn <f.hoeborn@gmail.com>

* Corrected copyright dates and missing newlines

Signed-off-by: Felix Hoeborn <f.hoeborn@gmail.com>

* Corrected copyright dates

Signed-off-by: Felix Hoeborn <f.hoeborn@gmail.com>

* Adjustments after review

Signed-off-by: Felix Hoeborn <f.hoeborn@gmail.com>

* Added file location in case a permissive license was found and adjusted tests

Signed-off-by: Felix Hoeborn <f.hoeborn@gmail.com>

* Removed code for check, adjusted probe code to be invocated independently

Signed-off-by: Felix Hoeborn <f.hoeborn@gmail.com>

* add remediate on outcome detail

Signed-off-by: Spencer Schrock <sschrock@google.com>

* avoid memory aliasing

Signed-off-by: Spencer Schrock <sschrock@google.com>

---------

Signed-off-by: Felix Hoeborn <f.hoeborn@gmail.com>
Signed-off-by: Felix Hoeborn <98820380+fhoeborn@users.noreply.github.com>
Signed-off-by: Spencer Schrock <sschrock@google.com>
Co-authored-by: Spencer Schrock <sschrock@google.com>
2024-04-11 23:07:35 -07:00
Adam Harvey
b77f248ff6
🌱 Bump CodeQL Action version to 3.24.10 and remove whitespace (#3972)
* 🌱 Remove whitespace

Signed-off-by: Adam Harvey <33203301+adamdmharvey@users.noreply.github.com>

* 🌱 Bump CodeQL Action version manually

Signed-off-by: Adam Harvey <33203301+adamdmharvey@users.noreply.github.com>

* 🌱 Bump CodeQL Action to v3.x series

Signed-off-by: Adam Harvey <33203301+adamdmharvey@users.noreply.github.com>

* chore(ci): Bump to latest CodeQL action hash/version

Signed-off-by: Adam Harvey <33203301+adamdmharvey@users.noreply.github.com>

---------

Signed-off-by: Adam Harvey <33203301+adamdmharvey@users.noreply.github.com>
2024-04-12 05:28:34 +00:00
Spencer Schrock
96452d99ab
📖 Review and update some probe documentation (#4023)
* polish some probe yaml definitions

Signed-off-by: Spencer Schrock <sschrock@google.com>

* update references to probe naming and outcomes

now that #3654 is addressed, the naming restrictions can be relaxed.

Signed-off-by: Spencer Schrock <sschrock@google.com>

---------

Signed-off-by: Spencer Schrock <sschrock@google.com>
2024-04-11 22:08:55 -07:00
Spencer Schrock
856419158a
🌱 migrate code review check to probes (#3979)
* initial conversion

Signed-off-by: Spencer Schrock <sschrock@google.com>

* appease the linter

Signed-off-by: Spencer Schrock <sschrock@google.com>

* cleanup outcomes from positive/negative to true/false conversion

Signed-off-by: Spencer Schrock <sschrock@google.com>

---------

Signed-off-by: Spencer Schrock <sschrock@google.com>
2024-04-10 15:43:12 -07:00