Skip to content

Commit 633aaf8

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

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

.github/workflows/scorecard.yaml

Lines changed: 16 additions & 4 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

@@ -61,7 +73,7 @@ jobs:
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)