Skip to content
This repository was archived by the owner on Jul 5, 2026. It is now read-only.

Commit 293fcd8

Browse files
author
Michael Tarnarutsky
committed
feat: add scorecard.ev
1 parent 4ecd7bc commit 293fcd8

2 files changed

Lines changed: 67 additions & 0 deletions

File tree

.github/workflows/scorecard.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# This workflow uses actions that are not certified by GitHub. They are provided
2+
# by a third-party and are governed by separate terms of service, privacy
3+
# policy, and support documentation.
4+
5+
name: Scorecard supply-chain security
6+
on:
7+
# Only the default branch is supported.
8+
branch_protection_rule:
9+
schedule:
10+
- cron: '20 7 * * 1'
11+
push:
12+
branches: [ "main" ]
13+
14+
# Declare default permissions as read only.
15+
permissions: read-all
16+
17+
jobs:
18+
analysis:
19+
name: Scorecard analysis
20+
runs-on: ubuntu-latest
21+
# `publish_results: true` only works when run from the default branch. conditional can be removed if disabled.
22+
if: github.event.repository.default_branch == github.ref_name || github.event_name == 'pull_request'
23+
permissions:
24+
# Needed to upload the results to code-scanning dashboard.
25+
security-events: write
26+
# Needed to publish results and get a badge (see publish_results below).
27+
id-token: write
28+
29+
steps:
30+
- name: "Checkout code"
31+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
32+
with:
33+
persist-credentials: false
34+
35+
- name: "Run analysis"
36+
uses: ossf/scorecard-action@f49aabe0b5af0936a0987cfb85d86b75731b0186 # v2.4.1
37+
with:
38+
results_file: results.sarif
39+
results_format: sarif
40+
# (Optional) "write" PAT token. Uncomment the `repo_token` line below if:
41+
# - you want to enable the Branch-Protection check on a *public* repository, or
42+
# - you are installing Scorecard on a *private* repository
43+
# To create the PAT, follow the steps in https://github.com/ossf/scorecard-action#authentication-with-pat.
44+
# repo_token: ${{ secrets.SCORECARD_TOKEN }}
45+
46+
# Public repositories:
47+
# - Publish results to OpenSSF REST API for easy access by consumers
48+
# - Allows the repository to include the Scorecard badge.
49+
# - See https://github.com/ossf/scorecard-action#publishing-results.
50+
publish_results: true
51+
52+
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
53+
# format to the repository Actions tab.
54+
- name: "Upload artifact"
55+
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
56+
with:
57+
name: SARIF file
58+
path: results.sarif
59+
retention-days: 5
60+
61+
# Upload the results to GitHub's code scanning dashboard (optional).
62+
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
63+
- name: "Upload to code-scanning"
64+
uses: github/codeql-action/upload-sarif@54f647b7e1bb85c95cddabcd46b0c578ec92bc1a # v4.36.3
65+
with:
66+
sarif_file: results.sarif

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Nona Config Admin
22

33
[![CI](https://github.com/Ryware/nona-config-admin/actions/workflows/ci.yml/badge.svg)](https://github.com/Ryware/nona-config-admin/actions/workflows/ci.yml)
4+
[![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/Ryware/nona-config-admin/badge)](https://scorecard.dev/viewer/?uri=github.com/Ryware/nona-config-admin)
45

56
Admin panel for Nona Config management system.
67

0 commit comments

Comments
 (0)