Skip to content

Commit c60b66b

Browse files
📖 Olivekl v4 doc updates (#1481)
* Create scorecards-analysis.yml * Update README.md Move Public Data section Add placeholders for new installation organization, TODOs for public data section * Update README.md Remove outdated public data scoring system paragraph * Update README.md Add explanation of Scorecard Action install option and link out * Update README.md Add sentence introducing CLI installation section; move all heading down a level for that section * Update README.md Fix typo * Update README.md Remove comma * Delete scorecards-analysis.yml file Co-authored-by: Azeem Shaikh <azeemshaikh38@gmail.com>
1 parent b6272c7 commit c60b66b

File tree

1 file changed

+61
-61
lines changed

1 file changed

+61
-61
lines changed

README.md

Lines changed: 61 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,16 @@
1010

1111
- [What Is Scorecards?](#what-is-scorecards)
1212
- [Prominent Scorecards Users](#prominent-scorecards-users)
13+
- [Scorecards' Public Data](#public-data)
1314

1415
## Using Scorecards
15-
16-
- [Prerequisites](#prerequisites)
17-
- [Installation](#installation)
18-
- [Authentication](#authentication)
19-
- [Basic Usage](#basic-usage)
20-
- [Report Problems](#report-problems)
21-
- [Scorecards' Public Data](#public-data)
16+
- [Scorecards GitHub Action](#scorecards-github-action)
17+
- [Scorecards Command Line Interface](#scorecards-command-line-interface)
18+
- [Prerequisites](#prerequisites)
19+
- [Installation](#installation)
20+
- [Authentication](#authentication)
21+
- [Basic Usage](#basic-usage)
22+
- [Report Problems](#report-problems)
2223

2324
## Checks
2425

@@ -60,40 +61,78 @@ Scorecards has been run on thousands of projects to monitor and track security m
6061
- [deps.dev](https://deps.dev)
6162
- [metrics.openssf.org](https://metrics.openssf.org)
6263

64+
### Public Data
65+
66+
We run a weekly Scorecards scan of the 1 million most critical open source projects judged by their direct dependencies and publish the results in a
67+
[BigQuery public dataset](https://cloud.google.com/bigquery/public-data).
68+
69+
This data is available in the public BigQuery dataset
70+
`openssf:scorecardcron.scorecard-v2`. The latest results are available in the
71+
BigQuery view `openssf:scorecardcron.scorecard-v2_latest`.
72+
73+
You can extract the latest results to Google Cloud storage in JSON format using
74+
the [`bq`](https://cloud.google.com/bigquery/docs/bq-command-line-tool) tool:
75+
76+
```
77+
# Get the latest PARTITION_ID
78+
bq query --nouse_legacy_sql 'SELECT partition_id FROM
79+
openssf.scorecardcron.INFORMATION_SCHEMA.PARTITIONS WHERE table_name="scorecard-v2"
80+
AND partition_id!="__NULL__" ORDER BY partition_id DESC
81+
LIMIT 1'
82+
83+
# Extract to GCS
84+
bq extract --destination_format=NEWLINE_DELIMITED_JSON
85+
'openssf:scorecardcron.scorecard-v2$<partition_id>' gs://bucket-name/filename-*.json
86+
87+
```
88+
89+
The list of projects that are checked is available in the
90+
[`cron/data/projects.csv`](https://github.com/ossf/scorecard/blob/main/cron/data/projects.csv)
91+
file in this repository. If you would like us to track more, please feel free to
92+
send a Pull Request with others. Currently, this list is derived from **projects hosted on GitHub
93+
ONLY**. We do plan to expand them in near future to account for projects hosted
94+
on other source control systems.
95+
6396
## Using Scorecards
97+
### Scorecards GitHub Action
98+
99+
The easiest way to use Scorecards on GitHub projects you own is with the [Scorecards GitHub Action](https://github.com/ossf/scorecard-action). The Action runs on any repository change and issues alerts that maintainers can view in the repository’s Security tab. For more information, see the Scorecards GitHub Action [installation instructions](https://github.com/ossf/scorecard-action#installation).
64100

65-
### Prerequisites
101+
### Scorecards Command Line Interface
102+
To run a Scorecards scan on projects you do not own, use the command line interface installation option.
103+
104+
#### Prerequisites
66105

67106
Platforms: Currently, Scorecards supports OSX and Linux platforms. If you are using a Windows OS you may experience issues. Contributions towards supporting Windows are welcome.
68107

69108
Language: You must have GoLang installed to run Scorecards (https://golang.org/doc/install)
70109

71-
### Installation
110+
#### Installation
72111

73-
#### Standalone
112+
##### Standalone
74113

75114
To install Scorecards as a standalone:
76115

77116
1. Visit our latest [release page](https://github.com/ossf/scorecard/releases/latest) and download the correct binary for your operating system
78117
2. Extract the binary file
79118
3. Add the binary to your `GOPATH/bin` directory (use `go env GOPATH` to identify your directory if necessary)
80119

81-
#### Using Homebrew
120+
##### Using Homebrew
82121

83122
You can use [Homebrew](https://brew.sh/) (on macOS or Linux) to install Scorecards.
84123

85124
```sh
86125
brew install scorecard
87126
```
88127

89-
### Using Linux package managers
128+
#### Using Linux package managers
90129

91130
| Package Manager | Linux Distribution | Command |
92131
|------------------------------------------------------------|--------------------|--------------------------------------------|
93132
| Nix | NixOS | `nix-env -iA nixpkgs.scorecard` |
94133
| [AUR helper](https://wiki.archlinux.org/title/AUR_helpers) | Arch Linux | Use your AUR helper to install `scorecard` |
95134

96-
### Authentication
135+
#### Authentication
97136

98137
GitHub imposes [api rate limits](https://developer.github.com/v3/#rate-limiting) on unauthenticated requests. To avoid these limits, you must authenticate your requests before running Scorecard. There are two ways to authenticate your requests: either create a GitHub personal access token, or create a GitHub App Installation.
99138

@@ -127,8 +166,8 @@ GITHUB_APP_ID=<app id>
127166
These variables can be obtained from the GitHub
128167
[developer settings](https://github.com/settings/apps) page.
129168

130-
### Basic Usage
131-
#### Docker
169+
#### Basic Usage
170+
##### Docker
132171

133172
`scorecard` is available as a Docker container:
134173

@@ -144,7 +183,7 @@ To use a specific scorecards version (e.g., v3.2.1), run:
144183
docker run -e GITHUB_AUTH_TOKEN=token gcr.io/openssf/scorecard:v3.2.1 --show-details --repo=https://github.com/ossf/scorecard
145184
```
146185

147-
#### Using repository URL
186+
##### Using repository URL
148187

149188
Scorecards can run using just one argument, the URL of the target repo:
150189

@@ -234,7 +273,7 @@ Check scores:
234273
| 10 / 10 | Vulnerabilities | no vulnerabilities detected | github.com/ossf/scorecard/blob/main/docs/checks.md#vulnerabilities |
235274
|---------|------------------------|--------------------------------|---------------------------------------------------------------------------|
236275
```
237-
#### Scoring
276+
##### Scoring
238277
Each individual check returns a score of 0 to 10, with 10 representing the best possible score. Scorecards also produces an aggregate score, which is a weight-based average of the individual checks weighted by risk.
239278

240279
* “Critical” risk checks are weighted at 10
@@ -244,7 +283,7 @@ Each individual check returns a score of 0 to 10, with 10 representing the best
244283

245284
See the [list of current Scorecards checks](#scorecard-checks) for each check's risk level.
246285

247-
#### Showing Detailed Results
286+
##### Showing Detailed Results
248287
For more details about why a check fails, use the `--show-details` option:
249288

250289
```
@@ -278,71 +317,33 @@ RESULTS
278317
|---------|------------------------|--------------------------------|--------------------------------|---------------------------------------------------------------------------|
279318
```
280319

281-
#### Using a Package manager
320+
##### Using a Package manager
282321

283322
For projects in the `--npm`, `--pypi`, or `--rubygems` ecosystems, you have the option to run Scorecards using a package manager. Provide the package name to run the checks on the corresponding GitHub source code.
284323

285324
For example, `--npm=angular`.
286325

287-
#### Running specific checks
326+
##### Running specific checks
288327

289328
To run only specific check(s), add the `--checks` argument with a list of check
290329
names.
291330

292331
For example, `--checks=CI-Tests,Code-Review`.
293332

294-
#### Formatting Results
333+
##### Formatting Results
295334

296335
There are three formats currently: `default`, `json`, and `csv`. Others may be
297336
added in the future.
298337

299338
These may be specified with the `--format` flag. For example, `--format=json`.
300339

301-
### Report Problems
340+
#### Report Problems
302341

303342
If you have what looks like a bug, please use the
304343
[Github issue tracking system.](https://github.com/ossf/scorecard/issues)
305344
Before you file an issue, please search existing issues to see if your issue
306345
is already covered.
307346

308-
### Public Data
309-
310-
If you're interested in seeing a list of projects with their Scorecard
311-
check results, we publish these results in a
312-
[BigQuery public dataset](https://cloud.google.com/bigquery/public-data).
313-
314-
This data is available in the public BigQuery dataset
315-
`openssf:scorecardcron.scorecard-v2`. The latest results are available in the
316-
BigQuery view `openssf:scorecardcron.scorecard-v2_latest`.
317-
318-
You can extract the latest results to Google Cloud storage in JSON format using
319-
the [`bq`](https://cloud.google.com/bigquery/docs/bq-command-line-tool) tool:
320-
321-
```
322-
# Get the latest PARTITION_ID
323-
bq query --nouse_legacy_sql 'SELECT partition_id FROM
324-
openssf.scorecardcron.INFORMATION_SCHEMA.PARTITIONS WHERE table_name="scorecard-v2"
325-
AND partition_id!="__NULL__" ORDER BY partition_id DESC
326-
LIMIT 1'
327-
328-
# Extract to GCS
329-
bq extract --destination_format=NEWLINE_DELIMITED_JSON
330-
'openssf:scorecardcron.scorecard-v2$<partition_id>' gs://bucket-name/filename-*.json
331-
332-
```
333-
334-
The list of projects that are checked is available in the
335-
[`cron/data/projects.csv`](https://github.com/ossf/scorecard/blob/main/cron/data/projects.csv)
336-
file in this repository. If you would like us to track more, please feel free to
337-
send a Pull Request with others. Currently, this list is derived from **projects hosted on GitHub
338-
ONLY**. We do plan to expand them in near future to account for projects hosted
339-
on other source control systems.
340-
341-
**NOTE**: The public dataset uses a Pass/Fail scoring system with a confidence score
342-
between **0 and 10**. A confidence of 0 indicates that the check was unable to
343-
achieve any real signal, and that the result should be ignored. A confidence of 10
344-
indicates the check was completely sure of the result.
345-
346347
## Checks
347348
### Scorecard Checks
348349

@@ -373,7 +374,6 @@ Name | Description | Risk Level
373374
To see detailed information about each check, its scoring criteria, and remediation steps, check out
374375
the [checks documentation page](docs/checks.md).
375376

376-
377377
## Contribute
378378
### Code of Conduct
379379
Before contributing, please follow our [Code of Conduct](CODE_OF_CONDUCT.md).

0 commit comments

Comments
 (0)