Skip to content

Commit 100e05c

Browse files
authored
Merge pull request #47 from gcmurphy/scorecard
Scorecard badge and publish of results
2 parents 6d2b95a + 8428080 commit 100e05c

File tree

2 files changed

+9
-31
lines changed

2 files changed

+9
-31
lines changed

.github/workflows/scorecard.yml

Lines changed: 5 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -28,33 +28,9 @@ jobs:
2828
with:
2929
results_file: results.sarif
3030
results_format: sarif
31-
# (Optional) "write" PAT token. Uncomment the `repo_token` line below if:
32-
# - you want to enable the Branch-Protection check on a *public* repository, or
33-
# - you are installing Scorecard on a *private* repository
34-
# To create the PAT, follow the steps in https://github.com/ossf/scorecard-action?tab=readme-ov-file#authentication-with-fine-grained-pat-optional.
35-
# repo_token: ${{ secrets.SCORECARD_TOKEN }}
31+
publish_results: true
3632

37-
# Public repositories:
38-
# - Publish results to OpenSSF REST API for easy access by consumers
39-
# - Allows the repository to include the Scorecard badge.
40-
# - See https://github.com/ossf/scorecard-action#publishing-results.
41-
# For private repositories:
42-
# - `publish_results` will always be set to `false`, regardless
43-
# of the value entered here.
44-
publish_results: false
45-
46-
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
47-
# format to the repository Actions tab.
48-
#- name: "Upload artifact"
49-
# uses: actions/upload-artifact@97a0fba1372883ab732affbe8f94b823f91727db # v3.pre.node20
50-
# with:
51-
# name: SARIF file
52-
# path: results.sarif
53-
# retention-days: 5
54-
55-
# Upload the results to GitHub's code scanning dashboard (optional).
56-
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
57-
#- name: "Upload to code-scanning"
58-
# uses: github/codeql-action/upload-sarif@1b1aada464948af03b950897e5eb522f92603cc2 # v3.24.9
59-
# with:
60-
# sarif_file: results.sarif
33+
- name: "Upload to code-scanning"
34+
uses: github/codeql-action/upload-sarif@1b1aada464948af03b950897e5eb522f92603cc2 # v3.24.9
35+
with:
36+
sarif_file: results.sarif

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@
99
<img src="https://img.shields.io/badge/docs-latest-blue.svg?style=flat-square"
1010
alt="docs.rs docs" />
1111
</a>
12+
<a href="https://scorecard.dev/viewer/?uri=github.com/gcmurphy/osv">
13+
<img src="https://api.scorecard.dev/projects/github.com/gcmurphy/osv/badge" alt="ossf scorecard">
14+
</a>
1215
</div>
1316

14-
15-
### About
17+
### About
1618

1719
This library provides bindings to Open Source Security Foundation's
1820
Open Source Vulnerability (osv) schema and a client to access

0 commit comments

Comments
 (0)