Skip to content

Commit 7085ece

Browse files
committed
chore(ci): add OpenSSF Scorecard
1 parent 90bf6bb commit 7085ece

2 files changed

Lines changed: 37 additions & 0 deletions

File tree

.github/workflows/scorecard.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Scorecard
2+
on:
3+
branch_protection_rule:
4+
schedule:
5+
- cron: "42 4 * * MON"
6+
push:
7+
branches:
8+
- main
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
analysis:
15+
name: Scorecard analysis
16+
runs-on: ubuntu-latest
17+
permissions:
18+
id-token: write
19+
security-events: write
20+
steps:
21+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
22+
with:
23+
persist-credentials: false
24+
- uses: ossf/scorecard-action@05b42c624433fc40578a4040d5cf5e36ddca8cde # v2.4.2
25+
with:
26+
results_file: results.sarif
27+
results_format: sarif
28+
publish_results: true
29+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
30+
with:
31+
name: SARIF file
32+
path: results.sarif
33+
retention-days: 7
34+
- uses: github/codeql-action/upload-sarif@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2
35+
with:
36+
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
# UpCloud CLI - upctl
22

33
[![upcloud-cli test](https://github.com/UpCloudLtd/upctl/actions/workflows/test.yml/badge.svg)](https://github.com/UpCloudLtd/upctl/actions/workflows/test.yml)
4+
[![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/UpCloudLtd/upcloud-cli/badge)](https://scorecard.dev/viewer/?uri=github.com%2FUpCloudLtd%2Fupcloud-cli)
45

56
`upctl` provides a command-line interface to [UpCloud](https://upcloud.com/) services. It allows you
67
to control your resources from the command line or any compatible interface.

0 commit comments

Comments
 (0)