Skip to content

Commit 7207c74

Browse files
authored
Merge pull request #175 from Ela689/add-scorecard-workflow
Add OpenSSF Scorecard workflow
2 parents cd4dd55 + af0b149 commit 7207c74

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Copyright (c) 2026, Oracle and/or its affiliates. All rights reserved.
2+
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/.
3+
4+
# Run Scorecard for this repository to further check and harden software and process.
5+
6+
name: Scorecards supply-chain security
7+
on:
8+
branch_protection_rule:
9+
schedule:
10+
- cron: 27 20 * * 1
11+
push:
12+
branches: [main]
13+
14+
permissions: read-all
15+
16+
jobs:
17+
analysis:
18+
name: Scorecards analysis
19+
runs-on: ubuntu-latest
20+
permissions:
21+
# Needed to upload the results to code-scanning dashboard.
22+
security-events: write
23+
actions: read
24+
contents: read
25+
# Needed to access OIDC token.
26+
id-token: write
27+
steps:
28+
- name: Check out repository
29+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
30+
with:
31+
persist-credentials: false
32+
33+
- name: Run analysis
34+
uses: ossf/scorecard-action@0864cf19026789058feabb7e87baa5f140aac736 # v2.4.2
35+
with:
36+
results_file: results.sarif
37+
results_format: sarif
38+
publish_results: true
39+
40+
- name: Upload analysis results
41+
uses: github/codeql-action/upload-sarif@45775bd8235c68ba998cffa5171334d58593da47 # v3.28.15
42+
with:
43+
sarif_file: results.sarif

0 commit comments

Comments
 (0)