Skip to content

Commit ecfb245

Browse files
authored
.github: Add Scorecard workflow (#5)
1 parent b1679bc commit ecfb245

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/scorecard.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: scorecard
2+
3+
on:
4+
push:
5+
branches:
6+
# Run on pushes to default branch
7+
- main
8+
schedule:
9+
# Run weekly on Saturdays
10+
- cron: "30 1 * * 6"
11+
# Run when branch protection rules change
12+
branch_protection_rule:
13+
# Run the workflow manually
14+
workflow_dispatch:
15+
16+
# Declare default permissions as read-only
17+
permissions: read-all
18+
19+
jobs:
20+
run-scorecard:
21+
# Call reusable workflow file
22+
uses: cisco-ospo/.github/.github/workflows/_scorecard.yml@main
23+
permissions:
24+
id-token: write
25+
security-events: write
26+
secrets: inherit
27+
with:
28+
# Publish results of Scorecard analysis
29+
publish-results: true

0 commit comments

Comments
 (0)