Skip to content

Commit a3a9c4c

Browse files
justaugustusUlisesGascon
authored andcommitted
docs: Minor cleanups including lint warnings and structure
Signed-off-by: Stephen Augustus <foo@auggie.dev>
1 parent 93b107a commit a3a9c4c

File tree

5 files changed

+40
-53
lines changed

5 files changed

+40
-53
lines changed

CHANGELOG.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,14 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5-
### [1.0.1](https://github.com/ossf/scorecard-monitor/compare/v1.0.0...v1.0.1) (2023-02-15)
6-
5+
## [1.0.1](https://github.com/ossf/scorecard-monitor/compare/v1.0.0...v1.0.1) (2023-02-15)
76

87
### Other
98

109
* added github action branding ([831364a](https://github.com/ossf/scorecard-monitor/commits/831364aaf4654af1bbc4747fcbc414539b9d7a74))
1110

1211
## 1.0.0 (2023-02-15)
1312

14-
1513
### Features
1614

1715
* added basic github action definition ([f98ce7c](https://github.com/ossf/scorecard-monitor/commits/f98ce7c0affd8559f37e5fbf2f9a2c3e30242eca))
@@ -32,12 +30,10 @@ All notable changes to this project will be documented in this file. See [standa
3230
* simplified legacy code ([eb024ed](https://github.com/ossf/scorecard-monitor/commits/eb024ed84e505433bb89098c65140e43b5784e7c))
3331
* WIP core logic ([939ebba](https://github.com/ossf/scorecard-monitor/commits/939ebba0c1d773237366620cefd77e2a54afff09))
3432

35-
3633
### Bug Fixes
3734

3835
* minor bugs ([#4](https://github.com/ossf/scorecard-monitor/issues/4)) ([e07d7f7](https://github.com/ossf/scorecard-monitor/commits/e07d7f7dd38efa5caaf64d0c548752f2ae54ed45))
3936

40-
4137
### Other
4238

4339
* added actions dependencies ([42029e2](https://github.com/ossf/scorecard-monitor/commits/42029e2788dfae7ad0b2ffd9011b085d46b10416))

CONTRIBUTING.md

Lines changed: 26 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -13,50 +13,49 @@ project. This document describes the contribution guidelines for the project.
1313
> For more details, see the [LF DCO wiki](https://wiki.linuxfoundation.org/dco)
1414
> or [this Pi-hole signoff guide](https://docs.pi-hole.net/guides/github/how-to-signoff/).
1515
16-
* [Contributing code](#contributing-code)
17-
* [Getting started](#getting-started)
18-
* [Environment Setup](#environment-setup)
19-
* [New to Node.js?](#new-to-nodejs)
20-
* [Contributing steps](#contributing-steps)
21-
* [Running the project locally](#running-the-project-locally)
22-
* [Installing the project dependencies](#installing-the-project-dependencies)
23-
* [Running tests](#running-tests)
24-
* [Linting the codebase](#linting-the-codebase)
25-
* [What to do before submitting a pull request](#what-to-do-before-submitting-a-pull-request)
26-
* [PR Process](#pr-process)
27-
* [Where the CI Tests are configured](#where-the-ci-tests-are-configured)
28-
* [Updating Docs](#updating-docs)
16+
- [Contributing code](#contributing-code)
17+
- [Getting started](#getting-started)
18+
- [Environment Setup](#environment-setup)
19+
- [New to Node.js?](#new-to-nodejs)
20+
- [Contributing steps](#contributing-steps)
21+
- [Running the project locally](#running-the-project-locally)
22+
- [Installing the project dependencies](#installing-the-project-dependencies)
23+
- [Running tests](#running-tests)
24+
- [Linting the codebase](#linting-the-codebase)
25+
- [What to do before submitting a pull request](#what-to-do-before-submitting-a-pull-request)
26+
- [PR Process](#pr-process)
27+
- [Where the CI Tests are configured](#where-the-ci-tests-are-configured)
28+
- [Updating Docs](#updating-docs)
2929

3030
## Contributing code
3131

3232
### Getting started
3333

34-
1. Create [a GitHub account](https://github.com/join)
35-
1. Create a [personal access token](https://docs.github.com/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens)
36-
1. Set up your [development environment](#environment-setup)
34+
1. Create [a GitHub account](https://github.com/join)
35+
1. Create a [personal access token](https://docs.github.com/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens)
36+
1. Set up your [development environment](#environment-setup)
3737

3838
### Environment Setup
3939

4040
You must install these tools:
4141

42-
1. [`git`](https://help.github.com/articles/set-up-git/): For source control
42+
1. [`git`](https://help.github.com/articles/set-up-git/): For source control
4343

44-
1. [`node`](https://nodejs.org/en/download/package-manager): You need node version
45-
`v20+`. The project includes support for [nvm](https://github.com/nvm-sh/nvm).
44+
1. [`node`](https://nodejs.org/en/download/package-manager): You need node version `v20+`. The project includes support for [nvm](https://github.com/nvm-sh/nvm).
4645

4746
### New to Node.js?
4847

4948
If you're unfamiliar with Node.js, there are plenty of articles, resources, and books.
5049
We recommend starting with several resources from the official Node.js website:
5150

52-
* [Introduction to Node.js](https://nodejs.org/en/learn/getting-started/introduction-to-nodejs)
51+
- [Introduction to Node.js](https://nodejs.org/en/learn/getting-started/introduction-to-nodejs)
5352

5453
## Contributing steps
5554

56-
1. Identify an existing issue you would like to work on, or submit an issue describing your proposed change to the repo in question.
57-
1. The maintainers will respond to your issue promptly.
58-
1. Fork this repo, develop, and test your code changes.
59-
1. Submit a pull request.
55+
1. Identify an existing issue you would like to work on, or submit an issue describing your proposed change to the repo in question.
56+
1. The maintainers will respond to your issue promptly.
57+
1. Fork this repo, develop, and test your code changes.
58+
1. Submit a pull request.
6059

6160
## Running the project locally
6261

@@ -73,6 +72,7 @@ First, check that you are using Node v20+ and then execute `npm ci` instead of `
7372
Currently, the project is using [Jest](https://jestjs.io/) and [Snapshot Testing](https://jestjs.io/docs/snapshot-testing).
7473

7574
You have several options to run the tests:
75+
7676
- `npm run test`: this will run the tests
7777
- `npm run test:update`: this will run the tests and update the snapshots
7878
- `npm run test:coverage` this will run the tests and generate a coverage report as terminal output and in HTML format that can be found in the `coverage/` folder
@@ -109,9 +109,8 @@ change, it's generally encouraged to submit the bugfix separately, but if you mu
109109
110110
## Where the CI Tests are configured
111111

112-
1. See the [action files](.github/workflows) to check its tests, and the
113-
scripts used on it.
112+
1. See the [action files](.github/workflows) to check its tests, and the scripts used on it.
114113

115114
## Updating Docs
116115

117-
The documentation can be found in the [README](./README.md). Any changes that are merged to `main` will be reflected directly on https://github.com/marketplace/actions/openssf-scorecard-monitor. Therefore, documentation changes do not require a specific release.
116+
The documentation can be found in the [README](./README.md). Any changes that are merged to `main` will be reflected directly on the [GitHub Actions Marketplace](https://github.com/marketplace/actions/openssf-scorecard-monitor), so documentation changes do not require a specific release.

README.md

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,19 @@
22

33
**Simplify OpenSSF Scorecard tracking in your organization with automated markdown and JSON reports, plus optional GitHub issue alerts.**
44

5-
---
6-
7-
**📢 IMPORTANT**
8-
9-
This project is now part of the [OpenSSF](https://openssf.org/) organization. You can find more information about it in [this announcement](https://github.com/ossf/scorecard-monitor/issues/79).
10-
11-
---
5+
*This project is part of [OpenSSF Scorecard](https://github.com/ossf/scorecard). Read [the announcement](https://github.com/ossf/scorecard-monitor/issues/79) for more details.*
126

137
## 🔮 About
148

15-
If you're feeling overwhelmed by an avalanche of repository scorecards in your organization, you can breathe easy: Automation is here to make your life easier! It will streamline the process of keeping track of them all by providing a comprehensive report in Markdown and a local database in JSON with all the scores. Furthermore, to stay on top of any changes in the scores, you can choose to get notifications through Github Issues.
9+
If you're feeling overwhelmed by an avalanche of scorecards across your organizations, you can breathe easy: automation is here to make your life easier! Scorecard Monitor streamlines the process of keeping track of them all by providing a comprehensive report in Markdown and a local database in JSON with all the scores. To stay on top of any changes in the scores, you can also choose to get notifications through Github Issues.
1610

1711
## ✅ Requirements
1812

1913
Please ensure that any repository you wish to track with Scorecard Monitor has already been analyzed by [OpenSSF Scorecard](https://github.com/ossf/scorecard) at least once. This can be accomplished using the official [GitHub Action](https://github.com/ossf/scorecard-action) or the [Scorecard CLI](https://github.com/ossf/scorecard?tab=readme-ov-file#scorecard-command-line-interface).
2014

2115
It's also possible that some repositories in your organization are already being [automatically tracked](https://github.com/ossf/scorecard/blob/main/docs/faq.md#can-i-preview-my-projects-score) by OpenSSF in this [CSV file](https://github.com/ossf/scorecard/blob/main/cron/internal/data/projects.csv) via weekly cronjob. One caveat: Automatically tracked projects _do not_ include [certain checks](https://github.com/ossf/scorecard/issues/3438) in their analysis (`CI-Tests,Contributors,Dependency-Update-Tool,Webhooks`).
2216

23-
If you're not sure whether a specific project is already using Scorecard, you can always spot-check with the following URL pattern: `https://securityscorecards.dev/viewer/?uri=github.com/<ORG_NAME>/<REPO_NAME>` (substitute `<ORG_NAME>` and `<REPO_NAME>` as appropriate). The [Scorecard API](https://api.securityscorecards.dev/) is also able to fetch scores for a given repository.
17+
If you're not sure whether a specific project is already using OpenSSF Scorecard, you can always spot-check with the following URL pattern: `https://securityscorecards.dev/viewer/?uri=github.com/<ORG_NAME>/<REPO_NAME>` (substitute `<ORG_NAME>` and `<REPO_NAME>` as appropriate). The [Scorecard API](https://api.scorecard.dev/) is also able to fetch scores for a given repository.
2418

2519
## 📺 Tutorial
2620

@@ -31,7 +25,7 @@ If you would like to contribute to the documentation, please feel free to open a
3125

3226
- Easy to use with great customization
3327
- Easy to patch the scoring as the reports includes a direct link to [StepSecurity](https://app.stepsecurity.io)
34-
- Easy way to visualize the scorecard results with [The Scorecard Visualizer](https://ossf.github.io/scorecard-visualizer/#/projects/github.com/nodejs/node) or [deps.dev](https://deps.dev/project/github/nodejs%2Fnode)
28+
- Easy way to visualize results with [Scorecard Visualizer](https://ossf.github.io/scorecard-visualizer/#/projects/github.com/nodejs/node) or [deps.dev](https://deps.dev/project/github/nodejs%2Fnode)
3529
- Cutting-edge feature that effortlessly compares OpenSSF scorecards between previous and current commits with [The Scorecard Visualizer Comparator](https://ossf.github.io/scorecard-visualizer/#/projects/github.com/nodejs/node/compare/39a08ee8b8d3818677eb823cb566f36b1b1c4671/19fa9f1bc47b0666be0747583bea8cb3d8ad5eb1)
3630
- Discovery mode: list all the repos in one or many organizations that are already being tracked with [OpenSSF Scorecard](https://github.com/ossf/scorecard)
3731
- Reporting in Markdown with essential information (hash, date, score) and comparative against the prior score
@@ -42,7 +36,7 @@ If you would like to contribute to the documentation, please feel free to open a
4236
- Extend the markdown template with you own content by using tags
4337
- Easy to modify the files and ensure the integrity with JSON Schemas
4438
- The report data is exported as an output and can be used in the pipeline
45-
- Great test coverage (in progress)
39+
- Great test coverage
4640

4741
### 🎉 Demo
4842

@@ -136,7 +130,7 @@ jobs:
136130
- `report-tags-enabled`: Defines if the markdown report must be created/updated around tags by default is disabled. This is useful if the report is going to be include in a file that has other content on it, like docusaurus docs site or similar
137131
- `report-start-tag` Defines the start tag, default `<!-- OPENSSF-SCORECARD-MONITOR:START -->`
138132
- `report-end-tag`: Defines the closing tag, default `<!-- OPENSSF-SCORECARD-MONITOR:END -->`
139-
- `render-badge`: Defines if the OpenSSF badge must be rendered in the reportor to only show the score
133+
- `render-badge`: Defines if the OpenSSF Scorecard badge must be rendered in the reporter to only show the score
140134
- `report-tool`: Defines the reporting review tool in place: `scorecard-visualizer` [Example](https://ossf.github.io/scorecard-visualizer/#/projects/github.com/nodejs/node) or `deps.dev` [Example](https://deps.dev/project/github/nodejs%2Fnode), by default `scorecard-visualizer`
141135

142136
### Outputs
@@ -285,4 +279,4 @@ Just for reference, the database will store the current value and previous value
285279

286280
## 💪 Contributing
287281

288-
Please read [CONTRIBUTING.md](https://github.com/UlisesGascon/.github/blob/main/contributing.md) for details on our code of conduct and the process for submitting pull requests to us. You need to accept DCO 1.1 in order to make contributions.
282+
Please read [CONTRIBUTING.md](https://github.com/ossf/scorecard-monitor/blob/main/CONTRIBUTING.md) for details on our code of conduct and the process for submitting pull requests to us. You need to accept DCO 1.1 in order to make contributions.

RELEASE.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,12 @@ This document describes the process for releasing a new version of the Scorecard
88

99
In order to generate a new release, it is recommended to use the commands:
1010

11-
12-
```
11+
```console
1312
npm run release:minor
1413
npm run release:patch
1514
npm run release:major
1615
```
1716

18-
1917
This includes all the changes in the [CHANGELOG](./CHANGELOG.md) and ensures that the `package.json` and `package-lock.json` are up to date.
2018

2119
You can discard the tag that has been generated locally, as we won't use it.
@@ -33,5 +31,5 @@ In order to create a new release, follow these steps:
3331
3. Target the new release version, like `v.1.0.3-beta5`. Note that you can use metadata like `-beta5` and you must include `v` as prefix.
3432
4. Mark `Set as the latest release`
3533
5. (Optionally) mark `Set as a pre-release` if it is non-production ready.
36-
6. :bulb: **Hint:** You can check another release ([example](https://github.com/ossf/scorecard-monitor/releases/tag/v2.0.0-beta7)) to follow the style for title and description (_Main Changes, PRs, New contributions_).
37-
7. Click the `Generate release notes` button in the top right to automatically populate the release description.
34+
6. :bulb: **Hint:** You can check another release ([example](https://github.com/ossf/scorecard-monitor/releases/tag/v2.0.0-beta7)) to follow the style for title and description (_Main Changes, PRs, New contributions_).
35+
7. Click the `Generate release notes` button in the top right to automatically populate the release description.

action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: 'OpenSSF Scorecard Monitor'
2-
description: 'Monitor OpenSSF Scorecard Evolution over time'
3-
author: 'Ulises Gascon'
2+
description: 'Monitor OpenSSF Scorecard evolution over time'
3+
author: 'OpenSSF Scorecard Authors'
44

55
inputs:
66
scope:
@@ -56,7 +56,7 @@ inputs:
5656
required: false
5757
default: "10"
5858
render-badge:
59-
description: 'Render the OSSF badge in the report'
59+
description: 'Render the OpenSSF Scorecard badge in the report'
6060
required: false
6161
default: "false"
6262
report-tool:

0 commit comments

Comments
 (0)