Skip to content

Commit 4cc3d4e

Browse files
committed
ci: Add Scorecard workflow
Signed-off-by: noa limoy <[email protected]>
1 parent 9f7dcf2 commit 4cc3d4e

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

.github/workflows/scorecard.yaml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,19 @@ on:
1111
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
1212
schedule:
1313
- cron: '16 21 * * 1'
14-
push:
15-
branches: [ "main" ]
14+
15+
# Allow manual triggering with branch selection
16+
workflow_dispatch:
17+
inputs:
18+
branch:
19+
description: 'Branch to scan'
20+
required: true
21+
default: 'main'
22+
type: choice
23+
options:
24+
- main
25+
- notebooks-v1
26+
- notebooks-v2
1627

1728
# Declare default permissions as read only.
1829
permissions: read-all
@@ -32,7 +43,8 @@ jobs:
3243

3344
steps:
3445
- name: "Checkout code"
35-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
46+
id: checkout
47+
uses: actions/checkout@v4
3648
with:
3749
persist-credentials: false
3850

@@ -54,14 +66,14 @@ jobs:
5466
# For private repositories:
5567
# - `publish_results` will always be set to `false`, regardless
5668
# of the value entered here.
57-
publish_results: true
69+
publish_results: false
5870

5971
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
6072
# format to the repository Actions tab.
6173
- name: "Upload artifact"
6274
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
6375
with:
64-
name: SARIF file
76+
name: SARIF file - ${{ github.event.inputs.branch || 'main' }}
6577
path: results.sarif
6678
retention-days: 5
6779

0 commit comments

Comments
 (0)