mirror of
https://github.com/valkey-io/valkey.git
synced 2026-05-06 05:26:42 -04:00
Adds scorecard workflow to publish OpenSSF scores (#3163)
Publish OpenSSF Scorecard results, which means users and downstream consumers can easily discover the project’s security best-practice signals via Scorecard API. Publishing Scorecard results: - Improves transparency for users and integrators - Provides early visibility into missing or improvable security practices Fixes #3162 --------- Signed-off-by: Gagan H R <hrgagan4@gmail.com>
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
name: OpenSSF Scorecard supply-chain security
|
||||
on:
|
||||
push:
|
||||
branches: [unstable]
|
||||
schedule:
|
||||
- cron: '0 0 * * 1'
|
||||
|
||||
permissions: read-all
|
||||
|
||||
jobs:
|
||||
analysis:
|
||||
name: Scorecard analysis
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
security-events: write
|
||||
id-token: write
|
||||
|
||||
steps:
|
||||
- name: "Checkout code"
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6.0.2
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
- name: "Run analysis"
|
||||
uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a #v2.4.3
|
||||
with:
|
||||
results_file: results.sarif
|
||||
results_format: sarif
|
||||
publish_results: true
|
||||
|
||||
- name: "Upload artifact"
|
||||
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f #v6.0.0
|
||||
with:
|
||||
name: SARIF file
|
||||
path: results.sarif
|
||||
retention-days: 5
|
||||
|
||||
- name: "Upload to code-scanning"
|
||||
uses: github/codeql-action/upload-sarif@6bc82e05fd0ea64601dd4b465378bbcf57de0314 #v4.32.1
|
||||
with:
|
||||
sarif_file: results.sarif
|
||||
@@ -1,4 +1,5 @@
|
||||
[](https://codecov.io/gh/valkey-io/valkey)
|
||||
[](https://securityscorecards.dev/viewer/?uri=github.com/valkey-io/valkey)
|
||||
|
||||
This project was forked from the open source Redis project right before the transition to their new source available licenses.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user