Skip to content

Commit 87b9628

Browse files
authored
CI: Add Scorecard workflow for repository analysis
This workflow runs the Scorecard analysis on pushes to the main branch and on a weekly schedule. Signed-off-by: Evgenii Malygin <2518859+678098@users.noreply.github.com>
1 parent 26f1889 commit 87b9628

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

‎.github/workflows/scorecard.yaml‎

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

0 commit comments

Comments
 (0)