Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@spencerschrock
Copy link
Member

What kind of change does this PR introduce?

documentation

What is the current behavior?

Users need to read the various probe def.yml files

What is the new behavior (if this is a feature change)?**

Users can read docs/probes.md (view the current status from this commit here)

Walks the various probes def.yaml files and puts them in a single markdown document. This doesn't currently include the remediation, but neither does the existing checks.md document either.

In order to avoid duplicating yaml definitions, this existing ones were moved to an internal directory so they can be reused.

  • Tests for the changes have been added (for bug fixes/features)

Which issue(s) this PR fixes

NONE

Special notes for your reviewer

Does this PR introduce a user-facing change?

For user-facing changes, please add a concise, human-readable release note to
the release-note

(In particular, describe what changes users might need to make in their
application as a result of this pull request.)

NONE

Walks the various probes def.yaml files and puts them in a single
markdown document. This doesn't currently include the remediation, but
neither does the existing checks.md document either.

In order to avoid duplicating yaml definitions, this existing ones were
moved to an internal directory so they can be reused.

Signed-off-by: Spencer Schrock <[email protected]>
Signed-off-by: Spencer Schrock <[email protected]>
Note: There is no validate-docs step for the probes code, as the
def.yml fields are validated elsewhere currently in the unit tests.

Signed-off-by: Spencer Schrock <[email protected]>
@spencerschrock spencerschrock requested a review from a team as a code owner June 17, 2024 20:15
@spencerschrock spencerschrock requested review from justaugustus and raghavkaul and removed request for a team June 17, 2024 20:15
Signed-off-by: Spencer Schrock <[email protected]>
@spencerschrock spencerschrock enabled auto-merge (squash) June 20, 2024 20:59
@spencerschrock spencerschrock merged commit 0d57c02 into ossf:main Jun 20, 2024
@spencerschrock spencerschrock deleted the probe-documentation branch June 20, 2024 21:05
raghavkaul pushed a commit to raghavkaul/scorecard that referenced this pull request Jul 1, 2024
* generate probe markdown documentation

Walks the various probes def.yaml files and puts them in a single
markdown document. This doesn't currently include the remediation, but
neither does the existing checks.md document either.

In order to avoid duplicating yaml definitions, this existing ones were
moved to an internal directory so they can be reused.

Signed-off-by: Spencer Schrock <[email protected]>

* fix linter

Signed-off-by: Spencer Schrock <[email protected]>

* add probe doc generation to Makefile

Note: There is no validate-docs step for the probes code, as the
def.yml fields are validated elsewhere currently in the unit tests.

Signed-off-by: Spencer Schrock <[email protected]>

* fix license for new yaml package

Signed-off-by: Spencer Schrock <[email protected]>

---------

Signed-off-by: Spencer Schrock <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants