Skip to content

Commit 16d79fb

Browse files
committed
chore: openssf card generation added
1 parent 30238b0 commit 16d79fb

2 files changed

Lines changed: 39 additions & 0 deletions

File tree

.github/workflows/scorecard.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: OpenSSF Scorecard
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
schedule:
9+
- cron: '0 8 * * 1'
10+
workflow_dispatch:
11+
12+
permissions: read-all
13+
14+
jobs:
15+
analyze:
16+
name: Scorecard analysis
17+
runs-on: ubuntu-latest
18+
permissions:
19+
security-events: write
20+
id-token: write
21+
contents: read
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
25+
with:
26+
persist-credentials: false
27+
28+
- name: Run analysis
29+
uses: ossf/scorecard-action@f49aabe0b5af0936a0987cfb85d86b75731b0186 # v2.4.1
30+
with:
31+
results_file: scorecard-results.sarif
32+
results_format: sarif
33+
publish_results: true
34+
35+
- name: Upload to GitHub code scanning
36+
uses: github/codeql-action/upload-sarif@03e4368ac7daa2bd82b3e85262f3bf87ee112f57 # v3
37+
with:
38+
sarif_file: scorecard-results.sarif

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
![Build](https://github.com/fetch-kit/ffetch/actions/workflows/ci.yml/badge.svg)
66
![codecov](https://codecov.io/gh/fetch-kit/ffetch/branch/main/graph/badge.svg)
7+
[![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/fetch-kit/ffetch/badge)](https://scorecard.dev/viewer/?uri=github.com/fetch-kit/ffetch)
78

89
![MIT](https://img.shields.io/npm/l/@fetchkit/ffetch)
910
![bundlephobia](https://badgen.net/bundlephobia/minzip/@fetchkit/ffetch)

0 commit comments

Comments
 (0)